Created
August 3, 2013 19:11
-
-
Save edthix/6147624 to your computer and use it in GitHub Desktop.
Some perspective on Clojure's quote, ' (single quote) and syntax quote ` (back quote)
This file contains hidden or 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
(ns my-app.core) | |
;; Clojure 1.5 | |
(quote hello 1 2 3 we are martians) ;; returns hello | |
'(hello 1 2 3 we are martians) ;; returns (hello 1 2 3 we are martians) | |
`(hello 1 2 3 we are martians) ;; (my-app.core/hello 1 2 3 my-app.core/we my-app.core/are my-app.core/martians) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment