This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-20
Channels
- # announcements (5)
- # beginners (37)
- # calva (3)
- # cider (23)
- # clojure (98)
- # clojure-dev (16)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (7)
- # clojure-uk (52)
- # clojurescript (14)
- # cursive (15)
- # data-science (1)
- # datomic (20)
- # emacs (7)
- # flambo (2)
- # fulcro (10)
- # jackdaw (1)
- # jobs (3)
- # joker (2)
- # juxt (3)
- # keechma (3)
- # leiningen (8)
- # luminus (3)
- # music (1)
- # off-topic (83)
- # pathom (19)
- # re-frame (19)
- # reitit (4)
- # shadow-cljs (76)
- # spacemacs (95)
- # tools-deps (16)
$ 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=>
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
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! 🙂
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
Ah, the ticket predates Spec being broken out of Clojure 1.9 into the separate alpha package? (or is it just a typo)