On 14 Jan., 13:59, Rich Hickey <richhic...@gmail.com> wrote:

> [...] the toString in the patch is quite
> inefficient.

Because symbols are immutable, they could cache the printable
representation in an extra field, but this would double the space
occupied by them.

> Second, it would be better not to replicate the logic for
> macro characters etc that already exists in the reader. That's not to
> say the reader stuff is ready for reuse as is, but making it so is the
> right thing.

Issue 13 is related to this. Syntactic validation of symbols in
clojure.core/symbol depends on the reader syntax of clojure also.

Would this patch eliminate the need to validate symbols? Are there
other constraints than that the printed representation read again
should result in the same symbol?

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