Fork me on GitHub
Vincent Cantin13:12:43

Hi, I am trying to define a cross-recursive spec (i.e. 2 specs defined using the other one) using spec-alpha2. How to do that?

Vincent Cantin13:12:16

My repl complains on the first definition, saying that it does not find the second one (which is defined after)

Alex Miller (Clojure team)13:12:55

That won’t work at the moment

Alex Miller (Clojure team)13:12:39

There’s a pass needed to ensure every spec properly delays resolution of named specs


will it work in spec-alpha2?

Alex Miller (Clojure team)14:12:10

it's just work I haven't done yet

👌 4
Alex Miller (Clojure team)14:12:19

it (mostly) works in spec 1