Re: s/valid? does not tell me if the data is valid as supplied

2018-02-21 Thread Alex Miller
On Wednesday, February 21, 2018 at 7:34:00 PM UTC-6, Didier wrote: > > I would actually love it if Spec was extended to have the concept of types. > Map specs are about attribute aggregation, not about types. https://clojure.org/about/spec#_map_specs_should_be_of_keysets_only > Something wher

Re: s/valid? does not tell me if the data is valid as supplied

2018-02-21 Thread Didier
I would actually love it if Spec was extended to have the concept of types. Something where every spec could be tied to a Type, and types could be constructed to have Hierarchies. Not sure what the syntax would be like, but say: (s/def :String ::name string?) (s/def :String ::address (s/and str

RE: s/valid? does not tell me if the data is valid as supplied

2018-02-21 Thread Sean Corfield
Looking around I see lots of cases where people do use conformers for coercion. That doesn’t make them right 😊 At a first glance it seems very natural, and warnings not to do it are not easily found. Every single time coercion comes up anywhere in the context of spec, someone says “don’t do th

Re: [ANN] Programming Clojure, 3rd edition

2018-02-21 Thread Michael Glaesemann
Congrats! > On 2018-02-21, at 10:04, Alex Miller wrote: > > The 3rd edition of Programming Clojure is now available on Pragmatic: > > https://pragprog.com/book/shcloj3/programming-clojure-third-edition > > The 1st edition was the first Clojure book available and was written by > Stuart Hallow

[ANN] Programming Clojure, 3rd edition

2018-02-21 Thread Alex Miller
The 3rd edition of Programming Clojure is now available on Pragmatic: https://pragprog.com/book/shcloj3/programming-clojure-third-edition The 1st edition was the first Clojure book available and was written by Stuart Halloway around Clojure 1.0. The second edition was an update by Aaron Bedra a

Re: [ANN] test-runner, a test runner for projects using Clojure Deps

2018-02-21 Thread Andy Fingerhut
Any call to clojure.core/future will also cause this 60-second delay, including calls to pmap or clojure.java.shell/sh: http://clojuredocs.org/clojure.core/future Andy On Tue, Feb 20, 2018 at 8:14 PM, 'Avi Flax' via Clojure < clojure@googlegroups.com> wrote: > On Tuesday, 20 February 2018 12:10:

Re: s/valid? does not tell me if the data is valid as supplied

2018-02-21 Thread Jan Rychter
On Tuesday, February 20, 2018 at 4:53:33 PM UTC+1, Alex Miller wrote: > > This is exactly why we recommend that you not use conformers for coercion. > Conformers were added primarily as a tool for building custom composite > spec types (for example, we used it to build keys* from keys). > I am a

[ANN] re-graph 0.1.4 - the GraphQL client for Clojurescript

2018-02-21 Thread Oliver Hine
Hi everyone, I'm pleased to announce the release of re-graph 0.1.4 . re-graph is a GraphQL client for Clojurescript with re-frame bindings and support for queries, subscriptions and mutations over websocket or HTTP. This release *adds suppo