This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-26
Channels
- # aws (1)
- # beginners (50)
- # boot (32)
- # chestnut (2)
- # cider (14)
- # clara (23)
- # cljs-dev (131)
- # cljsrn (44)
- # clojure (133)
- # clojure-belgium (3)
- # clojure-denmark (4)
- # clojure-dev (6)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-russia (95)
- # clojure-spec (59)
- # clojure-uk (14)
- # clojurescript (157)
- # cursive (26)
- # data-science (1)
- # datomic (160)
- # devops (5)
- # dirac (80)
- # emacs (2)
- # graphql (2)
- # jobs (2)
- # lein-figwheel (1)
- # lumo (9)
- # off-topic (151)
- # onyx (2)
- # parinfer (2)
- # pedestal (5)
- # perun (2)
- # re-frame (60)
- # reagent (3)
- # remote-jobs (1)
- # test-check (3)
- # uncomplicate (11)
- # yada (1)
@cfleming greetings! is there a way to custom-resolve macro? resolve as def/defn does not help me here:
the answer last i heard was that there is not a way right now but he is working on a way to custom define macros. he has one internally but it is not ready for external exposure. current resolved macros are custom defined by Colin.
as someone who writes in a rules based dsl for the majority of my day, i greatly look forward to its release.
@misha if your macro is at least a little bit like some other form already in clojure, you can use one of those
not really using clara yet, but digging into rule-based-systems as part of the quest to simplify/organize tons of UI state I am going to have.
@favila on the screenshot defn
macro resolution is applied, which helped only to recognize foo
, and prevent highlighting to leak out of the top form.
since there could be multiple conditions on the left hand side its pretty much hopeless to try and parse it as a defn
I spent 5 minutes on implementing a macro accepting '[]
instead of spliced list of :lhs => :rhs
, but didn't get it yet :)
@misha Yes, sadly @zylox’s answer is correct - I haven’t got to this yet. defn
is unlikely to work very well since it has to parse the whole form, and defrule
looks quite different, it’s only superficially similar.