Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-17 Thread Daniel Dinnyes
I am using Clojure 1.10.0 Basic example for the issue is: (let [x 42] :clojure.spec.alpha/invalid) This will result in the following exception: 2. Unhandled clojure.lang.Compiler$CompilerException 1. Caused by clojure.lang.ExceptionInfo Call to clojure.core/let did not conform to spec. #:cl

Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread Peter Hull
On Tuesday, 17 September 2019 22:34:04 UTC+1, Daniel Dinnyes wrote: > > (let [x 42] :clojure.spec.alpha/invalid) > > That's an interesting one. It's failing the spec on the let's body, which is just 'any?' , so this is initially surprising. However s/valid? is implemented as, approximately, (no

Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread 'David Bürgin' via Clojure
This is a known issue, see https://clojure.atlassian.net/projects/CLJ/issues/CLJ-1966 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please

Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread Peter Hull
On Wednesday, 18 September 2019 20:48:39 UTC+1, David Bürgin wrote: > > This is a known issue, see > https://clojure.atlassian.net/projects/CLJ/issues/CLJ-1966 > 2016! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema

Re: Using :clojure.spec.alpha/invalid inside clojure.core macros throw exception

2019-09-18 Thread Andy Fingerhut
I do not know the specifics of this issue, but just because it was reported in 2016 does not necessarily imply that the Clojure spec developers believe it is a bug, rather than something than an unexpected corner case that some spec users wish would behave differently. Also, Rich Hickey and Alex M