Created
December 1, 2016 07:34
-
-
Save knjname/6c67dd6f9d4adce82d8230e08a13ecdf to your computer and use it in GitHub Desktop.
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 do-nothing [x] | |
(println "Metadata inside do-nothing is: " (meta x)) | |
x) | |
(println "Metadata outside do-nothing is: " (meta (do-nothing ^{:key "hoge"} (range 10)))) | |
;; THE RESULT: | |
;; Metadata inside do-nothing is: {:line 5, :column 63, :key hoge} | |
;; Metadata outside do-nothing is: nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment