clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
2020-02-14T06:41:00.219Z

Thanks!

2020-02-14T23:21:55.220700Z

A way to attach meta data to a spec or something similar enough ? e.g.

(s/def ^:property1 ::myspec ...)

seancorfield 2020-02-14T23:30:41.221300Z

@jasonjckn You can't add metadata to a keyword.

2020-02-14T23:34:45.222400Z

yah I'm aware; thanks for the reply

2020-02-14T23:35:13.222900Z

https://github.com/mpenet/spex is a 3rd party lib that offers meta data ; but unlikely to be maintained i'd guess

mpenet 2020-02-15T11:21:52.226700Z

You'd be surprised ;)

mpenet 2020-02-15T11:22:41.226900Z

In any case, it's just an atom and a couple of functions, easy to make a metadata registry of your own until core implements one