Usual symbol:
'abc => abc
(symbol? 'abc) => true
(symbol "abc") => abc
(symbol? (symbol "abc")) => true

Special "symbol":
'nil => nil
(symbol? 'nil) => false
(symbol "nil") => nil
(symbol? (symbol "nil")) => true

(= 'nil (symbol "nil")) => false
(= 'nil nil) => true

We can see that (symbol "nil") truly evaluates to symbol nil. On the
other
side, reader evalutes 'nil to nil (nothing). (The same holds true for
'false and 'true.)

Is this consistent and correct behavior? If it is correct,
page http://clojure.org/Reader could tell more about 'nil, 'false and
'true.

Thank you, Frantisek

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