This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-15
Channels
- # adventofcode (46)
- # announcements (3)
- # aws (7)
- # babashka (47)
- # beginners (86)
- # calva (40)
- # cider (8)
- # clj-kondo (22)
- # clojure (63)
- # clojure-europe (16)
- # clojure-hungary (3)
- # clojure-nl (1)
- # clojure-norway (46)
- # clojure-sweden (1)
- # clojure-uk (3)
- # clojuredesign-podcast (2)
- # conjure (4)
- # datalevin (1)
- # events (1)
- # fulcro (5)
- # graalvm (4)
- # honeysql (8)
- # hyperfiddle (15)
- # music (1)
- # off-topic (5)
- # pathom (7)
- # pedestal (1)
- # polylith (3)
- # portal (19)
- # quil (1)
- # re-frame (36)
- # releases (1)
- # specter (3)
- # sql (3)
- # timbre (11)
- # tools-deps (4)
- # xtdb (55)
Continuing the conversation from https://clojurians.slack.com/archives/C03S1KBA2/p1702680404451899?thread_ts=1702674938.791789&cid=C03S1KBA2 …
One more request: It would be nice to have a function equivalent of portal.console/debug
to use in transducer pipelines.
I find myself writing code like this:
(sequence (comp
...
(map (fn[x] (portal.console/debug x)))
...)
...)
I don’t understand
I was wondering if a var could have both a runtime fn and a macro, but that doesn't make sense. I guess the other issue here is that passing in a fn references doesn't allow for capturing the source context :thinking_face:
Right. My use case is entirely about transducer pipelines so maybe a macro would do the trick. Something like:
(sequence (comp
...
(portal.console/debug-xf)
...)
...)
I wonder if we can do it like the transducer collection fns. If you call the fn with no args it returns an "identity" transducer that calls tap>?
I like that a lot
Sure. I’ll put one together this weekend
Thank you!
In terms of the reader macro, I feel like it's coinvent but feels like a bit of a hack, which is why I haven't gotten around to doing it.