Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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