syntax | since v0.0-1853 | in clojure | Edit |
Return the following form without evaluation, especially for symbols and lists.
'foo
=> foo
'(foo)
=> (foo)
Quote a form to get its literal value after reading, rather than the value created after evaluation.
'foo
is sugar for (quote foo)
.
Prevent the evaluation of the following form.
'foo
;;=> foo
'(a b c)
;;=> (a b c)
'[a b c]
;;=> [a b c]
'(a b (c d))
;;=> (a b (c d))
(defn- macros [ch]
(case ch
\" read-string*
\: read-keyword
\; read-comment
\' (wrapping-reader 'quote)
\@ (wrapping-reader 'clojure.core/deref)
\^ read-meta
\` read-syntax-quote ;;(wrapping-reader 'syntax-quote)
\~ read-unquote
\( read-list
\) read-unmatched-delimiter
\[ read-vector
\] read-unmatched-delimiter
\{ read-map
\} read-unmatched-delimiter
\\ read-char*
\% read-arg
\# read-dispatch
nil))