Hello!

I just noticed that quote constructs different lists than backquote.
We have
user> (= `(v 3) `(v ~(+ 1 2)))
true

but

user> (= '(v 3) `(v ~(+ 1 2)))
false
user> (= '(v 3) `(v 3))
false

and

user> (= '(v 3) (list 'v 3))
true
user> (= `(v 3) (list `v 3))
true
user> (= '(v 3) (list `v 3))
false
user> (= `(v 3) (list 'v 3))
false

The cause seems to be that

user> (quote `a)
(quote user/a)
user> (quote 'a)
(quote a)


Is there a good reason for this behavior? What is the rationale behind
it?

What is the most idomatic way to construct a list (in which certain
sub-expressions are to be evalutated) such that it is equal to a
quoted list?


Thank you!

Felix

-- 
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