Fork me on GitHub
#clojure-spec
<
2016-05-27
>
dominicm08:05:34

https://clojurians.slack.com/archives/clojure_spec/p1464278761000588 I was under this impression also. But I just found this message on google groups: https://groups.google.com/d/msg/clojure/5sZdCPQgZz4/7rpuiaj1AgAJ > OTOH, you may encounter user- or externally-supplied data at runtime and want to use the facilities of spec to validate/process it. Then you can use valid? or conform explicitly to do so.

Alex Miller (Clojure team)19:05:57

I have added a new section to the spec guide about generators http://clojure.org/guides/spec#_generators

Alex Miller (Clojure team)19:05:11

I still expect there to be a bit more to come on that page about generators and testing

Alex Miller (Clojure team)19:05:22

but seemed better to get something out there sooner

michaeldrogalis19:05:50

@alexmiller Was there any discussion with respect to predicate failures being recognizable from keys, tuple, etc? I can dig up the Gist link if you need for reference

Alex Miller (Clojure team)19:05:26

there have been so many things coming in I don't honestly remember if I talked about it with Rich - I have it in my "things to talk about" file

sashton20:05:56

is this a good place to mention spec guide (potential) typos?

sashton20:05:32

@alexmiller: Under Collections, it has the following: * Collection - (s/coll-of float?) I think coll-of needs a []

Alex Miller (Clojure team)20:05:27

I'll fix this one but for future reference, you can send issues/PRs for the site too http://clojure.org/community/contributing_site

Alex Miller (Clojure team)20:05:37

@sveri I have a patch to fix your bug, should go in the next alpha

sveri21:05:41

@alexmiller: Great, looking forward to testing it

Alex Miller (Clojure team)21:05:00

patch is on the ticket if you want to build your own version of clojure

Alex Miller (Clojure team)21:05:16

I added a test to the tests for it too

sveri21:05:48

Yea, I just saw it, I have not setup the clojure build chain, so I just wait for it, no urgency on my side. Thanks for the quick fix