This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-04
Channels
- # announcements (1)
- # architecture (7)
- # beginners (44)
- # biff (11)
- # calva (15)
- # cider (5)
- # clerk (9)
- # clj-kondo (20)
- # clj-on-windows (19)
- # clj-yaml (2)
- # cljs-dev (39)
- # clojure (52)
- # clojure-czech (2)
- # clojure-dev (11)
- # clojure-europe (28)
- # clojure-hamburg (10)
- # clojure-hungary (3)
- # clojure-nl (1)
- # clojure-norway (59)
- # clojure-uk (5)
- # clojured (2)
- # clojurescript (33)
- # conjure (2)
- # datahike (1)
- # datomic (5)
- # defnpodcast (5)
- # emacs (18)
- # figwheel (2)
- # funcool (6)
- # graphql (1)
- # hyperfiddle (11)
- # jobs (3)
- # joyride (13)
- # malli (6)
- # music (4)
- # off-topic (45)
- # polylith (11)
- # practicalli (3)
- # rdf (3)
- # releases (1)
- # scittle (8)
- # shadow-cljs (13)
- # specter (2)
- # squint (8)
- # testing (6)
- # tools-deps (21)
- # xtdb (2)
morning
Morning
mΓ₯ning
does anyone use clojure.template
much ? the only use i've noticed out in the wild is in the lux compiler ... https://github.com/LuxLang/lux/blob/91bc060bc498a0d2418198cfcb9dc39636d1d867/lux-bootstrapper/src/lux/parser.clj
I often start with that but then end up with`clojure.walk/postwalk-replace` since I need something more run-timey
do any particularly representative examples jump out @U04V15CAJ?
i guess your experience makes sense - lux being all about compile-time might find clojure.template
more useful
@U0524B4UW are you asking for an example of postwalk-replace?
yes plz
I wrote a template
function but I then discovered that postwalk-replace did exactly that ;)
Its use is here:
https://github.com/clj-kondo/clj-kondo/blob/493b5f38163837b6d03704cb9c81e27bb2badbb7/test/clj_kondo/discouraged_var_test.clj#L61
And a young astronomer-in-training! π
Possibly in the future. For now his interest seems to be mainly adjusting any knobs he can locate π
oh - that's a pretty neat compact construction!