Re: [clojure.spec/form] Need for evaluated subspecs

2017-05-22 Thread marian . hornak
Thanks Alex, I am surprised by info that *"s/and (and all of the spec forms) are macros to facilitate capturing the spec form for use in s/form and error reporting." *but everything makes sense considering it. Marián On Thursday, May 18, 2017 at 6:35:46 PM UTC+2, Alex Miller wrote: > > > > On

[clojure.spec/form] Need for evaluated subspecs

2017-05-17 Thread marian . hornak
Hi, I am writing a function that transforms Specs to another formats (similar to the JSON Schema). Assuming from this post , I am not the only one. There is no surprise that I am using clojure.spec/form. Unfortunately

Inconsistent clojure spec forms?

2017-01-19 Thread marian . hornak
Hi, this sequence of commands in Clojure 1.9.0-alpha14 suprised me: => (clojure.spec/def :test/name string?) :test/name => (clojure.spec/form (clojure.spec/and :test/name)) (clojure.spec/and :test/name) => (clojure.spec/form (clojure.spec/nilable :test/name)) (clojure.spec/nilable clojure.core/