Fork me on GitHub
#clojure-spec
<
2017-10-27
>
mmer08:10:50

Is there a way to associate a string of text with a spec definition. I would like to annotate my definitions

gklijs09:10:22

You can do something like (def label (s/and (s/spec string?) #(> (count %) 3) #(< (count %) 40))) and then use hat spec somewhere else like (s/def ::nl-label label)

danielneal09:10:42

I think doc-strings for specs are coming later, too