Tassilo Horn <tass...@member.fsf.org> writes:

> So basically, in java unicode escapes are replaced before parsing,
> whereas in clojure any unicode escape evaluates to a character, e.g.,
> (\u002b 1 2) is (\+ 1 2), not (+ 1 2).
>
> Well, I think the clojure way is the saner one.  And if you really
> need to instantiate
>
>   (defrecord इ [x])
>
> as (\u0907. 1), you can add your own `with-replaced-unicode' macro and
> be done.

Ups, that statement is wrong, because the reader cannot read symbols
with unicode escapes, and it wouldn't work for strings like "foo\u0022
anyway.

Bye,
Tassilo

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