This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-12
Channels
- # aleph (8)
- # announcements (9)
- # babashka (15)
- # beginners (91)
- # calva (54)
- # chlorine-clover (3)
- # cider (25)
- # clj-kondo (9)
- # cljfx (4)
- # cljsrn (12)
- # clojure (40)
- # clojure-australia (2)
- # clojure-europe (77)
- # clojure-nl (10)
- # clojure-spec (22)
- # clojure-uk (9)
- # clojurescript (39)
- # conjure (12)
- # cursive (8)
- # datascript (17)
- # datomic (22)
- # emacs (2)
- # expound (6)
- # fulcro (25)
- # kaocha (7)
- # malli (9)
- # meander (5)
- # off-topic (13)
- # pathom (8)
- # pedestal (5)
- # portal (1)
- # rdf (58)
- # re-frame (65)
- # reagent (15)
- # sci (3)
- # shadow-cljs (50)
- # test-check (6)
- # testing (3)
- # tools-deps (1)
- # vim (7)
- # xtdb (10)
I must say, this is perhaps the coolest thing I've done with meander 😉
(m/match '(let [b 2
c b
a (+ b 4)]
(a)
b)
(let [!var (m/cata !val) ...]
.
!outs ...)
(concat
`(let ~(vec (interleave
!var
(map (fn [val-statement]
`(capture ~(uuid) ~val-statement))
!val))))
!outs)
(?function-or-macro . (m/cata !args) ...)
(concat `(~?function-or-macro)
!args)
(m/pred symbol? ?x)
`(capture ~(uuid) ~?x)
?x ?x)
I'm playing around to see how hard it would be to get debux like info from macros with rewriting provided by meander. Looks promising so far 🙂@jatkin Interesting! Debux is already pretty good for me, which part of it doesn't satisfy you?