Skip to content

Instantly share code, notes, and snippets.

@ato
Created November 8, 2009 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ato/229099 to your computer and use it in GitHub Desktop.
Save ato/229099 to your computer and use it in GitHub Desktop.
(defmacro one []
"a one")
(defmacro two []
"and a two")
(defmacro whee [sym]
`(~sym))
(defmacro wheez [s]
`(~(symbol s)))
(whee one)
;=> "a one"
(wheez "two")
;=> "and a two"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment