Hello, how can I search a function signature that resembles my macro signature?
I've tried to lint a macro like clojure.core/def
and I got warning: inline def
@d.ian.b What does your macro look like when called?
aw, changed to var and looks cool
another one that I can't find resemblance is
(defmacro spy-on [fun-monitor-pair & body] ,,,,
(helpers/spy-on [fn1 fn1-mon fn2 fn2-mon] (body) )
looks like clojure.core/let
to me
tried
: error: unsupported binding form a-namespace/fn1
it seems you have not given me the example like you are calling it
for (helpers/spy-on [a-namespace/fn1 fn1-mon] (body) )
sorry ^^'
can you try clojure.core/binding
?
error: unresolved symbol fn1-mon
so where is fn1-mon
coming from?
is a name that i'm giving
so you have the name on the right instead of most macros which have the name on the right. that makes it incompatible
it's like inside a macro, i'm creating an atom named of this
yeah
maybe you could try changing your macro. and else: {:linters {:unresolved-symbol {:exclude [(foo.helpers/spy-on)]}}}
I think in your code binding
should work, if you reverse names to the left
Yeah, I will try this 😃
fixed the order of macro call, clojure.core/let
did the job
😃
thanks @borkdude
It wasn't me that made the macro =(
cool 🙂 preventing the Lisp curse with clj-kondo