Hi in https://github.com/taoensso/telemere/issues/60, there is a macro which you can call like this:
(log/log! {:id :smth
:let [my-var 5]
:data {:x my-var}}
(inc my-var))
So basically you can create new variables inside of it (in :let params map) and use them further.
Which is highlighted by clj-kondo as unresolved symbol.
Do you have maybe in mind some other clojure library that has this kind of syntax covered in clj-kondo so I can reuse it so it does not get highlighted?Do you have maybe in mind some other clojure library that has this kind of syntax covered in clj-kondo so I can reuse it so it does not get highlighted?https://github.com/tonsky/clojure-plus/ uses similar syntax and has https://github.com/tonsky/clojure-plus/tree/main/src/clj-kondo.exports/io.github.tonsky/clojure-plus
i'm on my phone but it'll look something like:
(defn log! [{:keys [node]}]
(let [[args body] (rest (:children node))]
(api/list-node (list* (api/token-node 'let) (api/vector-node (:let args)) body)))