Fork me on GitHub
#clojure-spec
<
2019-09-10
>
Nick14:09:47

I’d like to be able to add a docstring to my specs, to document particular points of interest about one spec versus a similar one. Looks like there’s an issue on the JIRA but it hasn’t been updated in some time. Is there a recommendation as to how to handle this yet? https://clojure.atlassian.net/browse/CLJ-1965

thumbnail21:09:56

At work we use/develop speced.def, which includes a helper exactly for this with tooling support; https://github.com/nedap/speced.def/blob/a6e4e40fa6b92cf66ca6b0f1542eeb8cbd09b039/src/nedap/speced/def.cljc#L24

Alex Miller (Clojure team)14:09:16

We're planning to work on it for spec 2, but currently, no

Nick14:09:48

Cool, thanks. I’ll just drop the comment in my code next to the spec def then.