In clojure is there something li开发者_开发技巧ke "is-macro?" to test to see if something is a macro?
Given a var, its metadata can tell you whether it's a macro:
(:macro (meta #'when))
=> true
(:macro (meta #'identity))
=> nil
In clojure is there something li开发者_开发技巧ke "is-macro?" to test to see if something is a macro?
Given a var, its metadata can tell you whether it's a macro:
(:macro (meta #'when))
=> true
(:macro (meta #'identity))
=> nil
河粉炒肉怎么做好吃啊??:下一篇
精彩评论