Fork me on GitHub
#clojure-spec
<
2019-05-11
>
denik16:05:56

I'm using s/conform to give a richer shape (e.g. places -> names / sequential -> associative) to data flowing through my program. However, after I conformed a value, it trickles through my program and is updated. The crux is that I don't have a spec for the conformed value, which would be useful. Since conform is doing the reshaping work, it must be possible to generate that spec. Currently, I'm hacking this behavior with s/unform and then s/conform

Alex Miller (Clojure team)19:05:44

that's why you shouldn't use conform to transform your data

Alex Miller (Clojure team)19:05:15

conform is designed to tell you how it parsed, not to serve as a general purpose transformation engine