Skip to content

Instantly share code, notes, and snippets.

@mneedham
Created December 10, 2009 16:28
Show Gist options
  • Save mneedham/253435 to your computer and use it in GitHub Desktop.
Save mneedham/253435 to your computer and use it in GitHub Desktop.
(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