On 4 August 2010 07:33, vishy <vishalsod...@gmail.com> wrote: > What does it mean?
It simply means that there is a class of strings which will be read in by the reader as keywords. (This is the class of strings starting with one or two colons followed by a string of characters which would, on its own, be read in as a symbol... Incidentally, the fact that strings of the latter type exist means that symbols also have a literal syntax.) Contrast this with Java arrays or instances of java.util.HashMap or indeed clojure.lang.PersistentQueue, instances of which can be constructed in Clojure -- with make-array / into-array for arrays, (java.util.HashMap.) etc. for Java hash maps, clojure.lang.PersistentQueue/EMPTY + subsequent conj's for PQ -- but which have no textual representation which would cause the reader itself to construct such instances. Now if the reader was modified so that #[1 2 3] would be equivalent to (conj clojure.lang.PersistentQueue/EMPTY 1 2 3), then from that point on PersistentQueues would also have a literal syntax (namely #[...]). Sincerely, Michał -- 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