I'm stuck on the seemingly basic thing. I have a namespace where I have some definitions:
(ns my-namespace) (def my-definition "HELLO") (def my-definition2 "HI")
Now I want to use the vars value in my-namespace in the macro, but I want to get the characters dynamically. For instance.
(defmacro my-macro [n] (-> "my-namespace/my-definition" symbol resolve var-get))
Getting a character this way works in a function (as long as the namespace is loaded), but not in the macro.
In a macro, a character cannot be resolved. I tried to quote and make inconspicuous, but still does not work.
Is it possible to use the value of the created character in a macro? If so, how?
source share