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

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

2017-05-20 Thread Leon Grapenthin
Hi Alex, thanks for replying. Indeed I don't have practical use for s/form right now; I'm just trying to guess what could be a good use in the future :) On Thursday, May 18, 2017 at 10:01:25 PM UTC+2, Alex Miller wrote: > > > > On Thursday, May 18, 2017 at 12:37:26 PM UTC-5, Leon Grapenthin wro

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

2017-05-18 Thread Alex Miller
On Thursday, May 18, 2017 at 12:37:26 PM UTC-5, Leon Grapenthin wrote: > > I also have this problem. > > 1. If I create a dynamic spec constructor per defmacro and invoke it, it's > s/form gives the primitive specs form - because spec doesn't provide me > with a way to facilitate specs that ca

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

2017-05-18 Thread Leon Grapenthin
I also have this problem. 1. If I create a dynamic spec constructor per defmacro and invoke it, it's s/form gives the primitive specs form - because spec doesn't provide me with a way to facilitate specs that capture their form. 2. If I apply that invocation to another primitive spec, s/form o

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

2017-05-18 Thread Alex Miller
On Wednesday, May 17, 2017 at 3:02:17 PM UTC-5, marian.hor...@vacuumlabs.com wrote: > > Hi, > > I am writing a function that transforms Specs to another formats (similar > to the JSON Schema). Assuming from this post >

[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