clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
2021-05-05T15:49:35.123Z

For a new project, use spec or spec2? If I go with spec, will it be obsoleted sometime?

2021-05-24T15:30:55.038900Z

It seems unlikely that spec2 will obsolete spec1 in 2021.

2021-05-24T15:31:17.039100Z

spec2 will not cause spec1 to change its behavior.

emccue 2021-05-05T15:55:01.123200Z

https://en.wikipedia.org/wiki/Osborne_effect

alexmiller 2021-05-05T16:01:38.123600Z

spec 2 is not ready for use yet, so spec

alexmiller 2021-05-05T16:01:59.124Z

when spec 2 is ready, it will include help for migrating to it

seancorfield 2021-05-05T17:53:13.125100Z

@alexmiller Since this seems to be a “Frequently Asked Question” about Spec 2, maybe you could put a big bold notice on the repo that says “EXPERIMENTAL: DO NOT USE YET!” or something? 🙂

alexmiller 2021-05-05T18:35:28.125400Z

It says "This library is a work in progress provided to gather feedback during development." and there are no releases of it so....

emccue 2021-05-05T18:42:43.126Z

yeah but "v2 not ready yet" doesn't alleviate people's concerns about whether they should invest in spec 1

alexmiller 2021-05-05T18:43:22.126400Z

spec 1 is a thing, feel free to use it

alexmiller 2021-05-05T18:44:15.126900Z

the spec language between the two is substantially the same. part of releasing spec 2 will be providing a migration path from spec 1

2021-05-05T19:28:26.127600Z

I recently got into malli - https://github.com/metosin/malli can highly recommend if you're looking to invest in something - it's also quite simple to generate clojure.spec.alpha or clojure.alpha.spec forms from malli schemas if you ever do want to switch

naomarik 2021-05-05T21:24:46.127900Z

I've been using malli since before it had a version and it's made my life so easy