clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
thheller 2019-09-20T22:08:20.033400Z

$ clj
Clojure 1.10.1
user=> (let [x :clojure.spec.alpha/invalid] x)
Syntax error macroexpanding clojure.core/let at (REPL:1:1).
:clojure.spec.alpha/invalid - failed: any? at: [:bindings :init-expr] spec: :clojure.core.specs.alpha/bindings
user=>

thheller 2019-09-20T22:08:51.033800Z

seems like a bug?

seancorfield 2019-09-20T22:15:59.034300Z

A JIRA issue was raised about it three years ago @thheller

2019-09-20T22:17:15.034700Z

do you happen to have a link to that? I was looking the other day and couldn't find it

seancorfield 2019-09-20T22:18:31.034900Z

https://clojure.atlassian.net/projects/CLJ/issues/CLJ-1966

2019-09-20T22:18:44.035300Z

thanks

seancorfield 2019-09-20T22:19:06.035800Z

It came up on the mailing list just a few days ago which is why I remembered it... and why I couldn't find it searching Slack or Zulip! 🙂

thheller 2019-09-20T22:20:31.036100Z

ah right. my search failed because the ticket uses :clojure.spec/invalid

alexmiller 2019-09-20T22:21:26.036700Z

I should prob just close that as won’t fix

alexmiller 2019-09-20T22:22:13.037600Z

There are workarounds for all the situations I’m aware of like this and it’s I think nontrivial to “fix”

alexmiller 2019-09-20T22:22:56.038500Z

Like in the example above you can def a var to the invalid keyword and then use the var instead

thheller 2019-09-20T22:23:41.038800Z

yeah, I suggested that too

thheller 2019-09-20T22:24:09.039200Z

thx

seancorfield 2019-09-20T22:29:59.039900Z

Ah, the ticket predates Spec being broken out of Clojure 1.9 into the separate alpha package? (or is it just a typo)

alexmiller 2019-09-20T22:39:22.040100Z

Predates

alexmiller 2019-09-20T22:39:29.040300Z

I think