Fork me on GitHub
#clojure-spec
<
2020-11-07
>
borkdude20:11:02

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

seancorfield21:11:59

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.

seancorfield21:11:28

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

borkdude21:11:59

Nice, thanks. Coax looks pretty cool