Skip to content

Instantly share code, notes, and snippets.

@mwmitchell
Created January 25, 2012 01:51
Show Gist options
  • Save mwmitchell/1674116 to your computer and use it in GitHub Desktop.
Save mwmitchell/1674116 to your computer and use it in GitHub Desktop.
;; GOOD ->
(defmacro x [& items]
`(let [~(symbol "one") 1
~(symbol "two") 2]
(str ~@items)))
(x one two)
;;;;;;;;;;;;;;;;;; NO GOOD ->
(defmacro x [items]
`(let [~(symbol "one") 1
~(symbol "two") 2]
(str ~@items)))
(x '(one two))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment