Created
April 25, 2011 15:28
-
-
Save anonymous/940669 to your computer and use it in GitHub Desktop.
better implementation of defn+
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 defn+ | |
[& params] | |
`(do | |
(defn ~@params) | |
(def ~(first params) | |
(with-meta | |
~(first params) | |
{:source ~(pr-str `(defn ~@params))})))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment