Created
December 10, 2009 16:28
-
-
Save mneedham/253435 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 a [person] | |
`(println "hello" ~person)) | |
user=> (macroexpand-1 '(a anybody)) | |
(clojure.core/println "hello" anybody) | |
user=> (a "anybody") | |
hello anybody | |
nil | |
------------- | |
(defmacro a [person] | |
(list println "hello" person)) | |
user=> (macroexpand-1 '(a anybody)) | |
(#<core$println__5440 clojure.core$println__5440@681ff4> "hello" anybody) | |
user=> (a "anybody") | |
hello anybody | |
nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment