Skip to content

Instantly share code, notes, and snippets.

@jashmenn
Created October 14, 2010 23:19
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 jashmenn/fdd8b7b902b1ab8170f7 to your computer and use it in GitHub Desktop.
Save jashmenn/fdd8b7b902b1ab8170f7 to your computer and use it in GitHub Desktop.
how to we take the value of x within the macro?
(defmacro foo [x]
(prn x) ;; how do i prn "3" not "g" here?
`(prn ~x))
(let [g 3] (foo g))
;; g
;; 3
;; nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment