clojure-spec

bortexz 2022-03-30T18:26:02.143899Z

Sometimes I find the best place to put fn specs as metadata on de fn, like tests

(defn a 
 {:spec (s/fspec ...)}
 []
 ...)
is this something being considered for spec2? technically you can already do this, is there tooling around using specs on metadata?

Alex Miller (Clojure team) 2022-03-30T18:33:19.958569Z

there are a lot of tradeoffs (var meta is evaluated in particular) and yes there are some things being considered here

👍 3
Oliver George 2022-03-30T22:34:50.870119Z

@alexmiller have you peeked at the survey responses? Does it help justify prioritisation/investment in v2 spec?

Colin P. Hill 2022-03-31T13:04:55.419489Z

I imagine checking the survey to confirm that people want spec2 is rather like checking a thermometer to confirm that lava is, indeed, hot

Alex Miller (Clojure team) 2022-03-30T22:46:20.001369Z

I have, although I didn't really need the survey to tell me people are interested in spec :)

🙂 7