This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-08
Channels
- # adventofcode (49)
- # babashka (21)
- # babashka-sci-dev (12)
- # beginners (250)
- # calva (23)
- # cider (6)
- # clj-kondo (11)
- # cljsrn (8)
- # clojure (129)
- # clojure-europe (50)
- # clojure-france (8)
- # clojure-italy (6)
- # clojure-nl (14)
- # clojure-romania (7)
- # clojure-spec (21)
- # clojure-uk (3)
- # clojurescript (17)
- # conjure (1)
- # core-async (40)
- # core-logic (24)
- # core-typed (7)
- # datavis (2)
- # datomic (2)
- # emacs (29)
- # fulcro (10)
- # graalvm (6)
- # graphql (24)
- # gratitude (6)
- # jobs (1)
- # lsp (9)
- # malli (6)
- # missionary (1)
- # nextjournal (46)
- # off-topic (2)
- # other-languages (3)
- # pathom (5)
- # portal (2)
- # re-frame (37)
- # remote-jobs (1)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (6)
- # tools-deps (13)
- # vim (32)
- # xtdb (16)
if I have a fn
-like macro, which introduces a symbol within the scope of the body, I can use :unresolved-symbol
to tell clj-kondo
to exclude the symbol. But what if I have a macro, which uses a binding from the outer scope from the call site? Naturally clj-kondo
doesn't know that the macro uses the binding and I will (assuming no one else uses it) get an unused binding warning.
@lasse.olavi.maatta can you sketch an example of what the usage looks like?
(don't ask me why someone wrote a macro like that..)
if this is not possible, then you can write a hook to expand the some-macro into code which does use the a binding
yeah, there's probably plenty of ways to fix the original code
thanks