This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-28
Channels
- # announcements (33)
- # aws (2)
- # babashka (14)
- # beginners (128)
- # calva (34)
- # cestmeetup (3)
- # clj-kondo (12)
- # cljdoc (3)
- # clojure (114)
- # clojure-europe (31)
- # clojure-italy (3)
- # clojure-nl (7)
- # clojure-uk (6)
- # clojurescript (35)
- # conjure (20)
- # cursive (3)
- # data-science (3)
- # datomic (16)
- # docker (13)
- # events (1)
- # figwheel-main (22)
- # fulcro (109)
- # jobs (1)
- # kaocha (8)
- # keechma (1)
- # lambdaisland (5)
- # malli (1)
- # meander (8)
- # mid-cities-meetup (1)
- # off-topic (6)
- # overtone (7)
- # pathom (6)
- # re-frame (2)
- # reitit (9)
- # ring (1)
- # shadow-cljs (92)
- # specter (1)
- # tools-deps (311)
- # xtdb (76)
Hi, the following expression causes a ClassCastException (`clojure.lang.PersistentList cannot be cast to clojure.lang.Named`):
(m/match ((partial inc) 0)
?a
?a)
Bug/known?The first arg for match
is specced as any?
so I’d assume this would work :thinking_face:
An obvious workaround is to write:
(let [res ((partial inc) 0)]
(m/match res
?a
?a))
I stumbled across it after writing something akin to this:
(def *some-slow-to-init-fn (delay inc))
(-> (@*some-slow-to-init-fn 0)
(m/match ?a ?a))
I didn't know about this issue. But I have a good guess as to what is causing it. Will try to get a fix out asap.
Alright, cool 👍 It’s not stopping us in any way, so no need to rush for our sake 🙂 Thanks, and have a nice day!
Thanks @U06MDAPTP 🙂