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
borkdude 2020-11-07T20:39:02.282800Z

What was the take on spec and coercions again - spec isn't meant to do coercions of values (during conformation), rather it only validates or conforms values, right? Then what is the opinion on a library like this one? https://github.com/exoscale/coax

seancorfield 2020-11-07T21:01:59.284200Z

My reading of comments by Alex, at least, is that Specs should not do coercions, but libraries that infer coercions from Specs, and do those coercions "outside" Spec are a good way to do stuff.

seancorfield 2020-11-07T21:03:28.285400Z

Our "web specs" library does the coercions internally in the Specs ("bad") but I've been looking at moving to spec-coerce instead (or maybe coax) and deprecating our library @borkdude

borkdude 2020-11-07T21:08:59.285600Z

Nice, thanks. Coax looks pretty cool