$ 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=>
seems like a bug?
A JIRA issue was raised about it three years ago @thheller
do you happen to have a link to that? I was looking the other day and couldn't find it
thanks
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! 🙂
ah right. my search failed because the ticket uses :clojure.spec/invalid
I should prob just close that as won’t fix
There are workarounds for all the situations I’m aware of like this and it’s I think nontrivial to “fix”
Like in the example above you can def a var to the invalid keyword and then use the var instead
yeah, I suggested that too
thx
Ah, the ticket predates Spec being broken out of Clojure 1.9 into the separate alpha package? (or is it just a typo)
Predates
I think