meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
magnusdk 2020-07-28T12:41:27.277400Z

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?

magnusdk 2020-07-28T12:44:14.277700Z

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))

magnusdk 2020-07-28T12:51:05.278100Z

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))

jimmy 2020-07-28T13:18:10.278300Z

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.

magnusdk 2020-07-28T13:23:48.278500Z

Alright, cool πŸ‘ It’s not stopping us in any way, so no need to rush for our sake πŸ™‚ Thanks, and have a nice day!

noprompt 2020-07-28T16:22:09.278800Z

Fixed, will deploy a new release shortly.

πŸ‘ 1
noprompt 2020-07-28T17:12:47.279400Z

[meander/epsilon "0.0.480"]
β€’ Fixes that bug

πŸ‘ 2
jimmy 2020-07-28T18:27:07.279600Z

Thanks @noprompt πŸ™‚