Skip to content

Instantly share code, notes, and snippets.

@jashmenn jashmenn/macro-help.clj Secret
Created Oct 14, 2010

Embed
What would you like to do?
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
You can’t perform that action at this time.