Fork me on GitHub
#clojure-spec
<
2017-09-10
>
samedhi00:09:58

Seems like the two should be equivalent, since ::posts would (probabilistically) stop its recursion when it generates the empty map (`{}`).

samedhi00:09:15

Pleased to see that the generated data is in fact recursive! I guess I will just let it be, just to close out, my question mostly has to do with why ::posts must be put in the :opt and cannot be included in the :req.

samedhi00:09:09

Also, it is rather interesting that ::posts can be referenced before being used, which I guess implies that spec/keys does not “dereference” ::posts at its declaration, but waits to do so until the ::post spec is used.

samedhi00:09:15

Curiouser and curiouser