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!
Fixed, will deploy a new release shortly.
[meander/epsilon "0.0.480"]
β’ Fixes that bugThanks @noprompt π