标签: clojure
如何获取第二个嵌套var的字符串名称?
(def bar "abc") (defn string-var [foo] (...)) (= "bar" (string-var bar))
答案 0 :(得分:0)
您可以使用macro
macro
(def bar "abc") (defmacro string-var [foo] (name foo)) (string-var bar) => "bar"