Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
=> (defmacro dummy-defn
[name args & body]
(println "emitted defn with name meta of:" (meta name))
`(defn ~name
=> (dummy-defn ^:private ^:blahblah foo
[a b]
(+ a b))
emitted defn with name meta of: {:private true, :blahblah true}
=> (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
You can’t perform that action at this time.