On Tue, Mar 6, 2012 at 3:25 PM, Timothy Baldridge <tbaldri...@gmail.com> wrote:
>> "Symbols begin with a non-numeric character and can contain alphanumeric
>> characters and *, +, !, -, _, and ? ... Keywords are like symbols ..."
>
> But this is the documentation for the reader...not necessarily for
> symbols/keywords.
>
> My argument is that clojure in no way validates the input to (symbol)
> or (keyword) so why should we call this a bug? IMO, it's the same
> problem with using Atoms and Refs with pr-str. If an Atom doesn't
> round-trip through pr-str and the reader, is it somehow invalid? No,
> it just means you shouldn't use it in cases where you need it to
> round-trip. The same applies to keywords with unicode characters, or
> symbols with spaces.

That's an apples-to-oranges comparison. Atoms and Refs are identities.
Nobody expects identities to round-trip and keep their semantics. On
the other hand, Keywords and Symbols are values. Everybody expects
values to round-trip and keep their semantics, so when that fails to
happen in some instance it violates least surprise.

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

Reply via email to