-
-
Save cemerick/562cc9580b0579de8179 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> (defmacro dummy-defn | |
[name args & body] | |
(println "emitted defn with name meta of:" (meta name)) | |
`(defn ~name | |
~args | |
~@body)) | |
#'user/dummy-defn | |
=> (dummy-defn ^:private ^:blahblah foo | |
[a b] | |
(+ a b)) | |
emitted defn with name meta of: {:private true, :blahblah true} | |
#'user/foo | |
=> (meta #'foo) | |
{:arglists ([a b]), :ns #<Namespace user>, :name foo, :blahblah true, :private true, :line 1, :file "NO_SOURCE_PATH"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment