Hi all
我在看 lein-ring插件源码时,发现很多 语法引用符号 ` 都用在defn里。
       `(do ~(start-nrepl-expr project) ~(start-server-expr project))

(defn load-namespaces
  [& syms]
  `(require
    ~@(for [s syms :when s]
        `'~(if-let [ns (namespace s)]
             (symbol ns)
             s))))


我的直觉是这些最好是用在编译期的宏里。

用在运行期的的函数里是什么意思呢, 比较愚笨,希望高手解答。谢谢

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to