On Jan 13, 4:56 pm, "Robert Pfeiffer" <pfeiffer.rob...@googlemail.com>
wrote:
> Hello everybody,
>
> this patch implements a pipe-delimited syntax for symbols. The Reader
> parses |this symbol| and one symbol. Symbols containing clojure syntax
> are printed in this form, so they can be printed and read in again.
>
> example: (.toString (symbol "()")) => "|()|"
>
> What do you think?
>

I am interested in symbols with arbitrary names, but I don't think
this is the right approach. First, it can't have such a detrimental
effect on normal symbols - the toString in the patch is quite
inefficient. 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.

I haven't fully thought out how this ought to work (there's likely a
speed/space tradeoff somewhere), and it is pretty low priority.

Rich

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