-
-
Save jashmenn/fdd8b7b902b1ab8170f7 to your computer and use it in GitHub Desktop.
how to we take the value of x within the macro?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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