This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-25
Channels
- # babashka (31)
- # beginners (38)
- # biff (1)
- # calva (10)
- # clj-kondo (10)
- # clj-otel (9)
- # clojure (9)
- # clojure-europe (4)
- # clojure-norway (4)
- # clojurescript (26)
- # cursive (2)
- # datahike (3)
- # datomic (4)
- # emacs (6)
- # inf-clojure (2)
- # missionary (11)
- # nbb (3)
- # off-topic (9)
- # portal (17)
- # re-frame (16)
- # reagent (1)
- # releases (3)
- # shadow-cljs (5)
- # tools-build (17)
- # tools-deps (2)
- # xtdb (6)
https://github.com/rgkirch/missionary-help/blob/a299ad646f2b39da8882d757b8b859d43378ed61/src/mh.cljs#L43 works (i.e. prints the contents of my text field to the console iff I click the button); https://github.com/rgkirch/missionary-help/blob/a299ad646f2b39da8882d757b8b859d43378ed61/src/mh.cljs#L73 doesn't work (i.e. prints mouse clicked: text is #object[missionary.impl.Ambiguous.Branch]
to the console). Steps to reproduce: clone [email protected]:rgkirch/missionary-help.git
, run npm run dev
, visit http://localhost:8080, open browser console, enter text in textbox, click submit button, see error.
on mobile so can't take in the full code but i think m/ap does not cross lambda boundaries
i have no idea what it macroexpanded to, i think the behavior you observed is extremely undefined, m/?< and friends are cloroutine macro breakpoints IIUC so maybe in the final macro expansion the m/?< just got omitted?
I'm not sure that you're interested in this; I don't think ?<
got omitted.
At the moment, I'm not interested in treating this as a bug or feature request; I just want to learn how to use missionary the "right" way.
Thanks!
Yeah, did you try macroexpanding all the way? I would love to see that
The first form is OK, the second one is not. Parking operators are illegal outside of rewriting macros and also illegal in lambda expressions defined in rewriting macros. The reason is technical, related to platform limitations. It will eventually be documented, it is also planned to improve error messages.