Here is the quick clojure sample:

user=> (def p1 `(or a b))
#'user/p1
user=> (def p2 '(or a b))
#'user/p2
user=> (= (first p1) 'or)
false
user=> (= (first p2) 'or)
true

At the same time this seems unique to clojure as the clisp behavior differs:

[1]> (setf p1 `(or a b))
(OR A B)
[2]> (setf p2 '(or a b))
(OR A B)
[3]> (eq (first p1) 'or)
T
[4]> (eq (first p2) 'or)
T

The difference in quoted and backquoted form interpretation by the reader 
strikes me as odd - why imported symbols (like `or') treated in different 
ways?

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to