Fork me on GitHub
#clojure-spec
<
2018-01-06
>
misha11:01:41

is there anything to read at length about "don't do the coercion"? It makes sense here and there, but I'd like to see the bigger picture

Alex Miller (Clojure team)14:01:19

If you build coercion into your spec, particularly lossy coercion, then you have made a decision for all consumers of your spec that they have no choice over

gfredericks17:01:52

is the recommendation for coercion use-cases "do it by hand outside the spec'd zone"?

misha18:01:52

so objection is not about coercion, but about complecting it with specs? Or even about lossy (in any way) specs?

ikitommi20:01:46

“they (spec consumers) have no choise over” => wouldn’t CLJ-2116 fix just that?

Alex Miller (Clojure team)22:01:08

@misha right. I have no problem with coercion as a concept. :)

gfredericks23:01:41

I on the other hand