I saw this curious behavior when I was playing with ` and '. Syntax quote 
returns 'Cons' if the list has more than one item:

user=> (type `(1))
clojure.lang.PersistentList
user=> (type `(1 2))
clojure.lang.Cons


As far as I can see 
(https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/LispReader.java#L839),
 
this should be returning a PersistentList always. Can anyone throw some 
light on how and why a Cons is returned for certain lists?

TIA,
Subhash

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to