Reader bug?

2013-03-28 Thread Mark Engelberg
According to the Java docs, Java strings support eight escape characters.
http://docs.oracle.com/javase/tutorial/java/data/characters.html
One of the valid escape characters is \'

Clojure strings are supposed to be the same as Java strings, but when I
type the following string into the Clojure REPL, I get an error that \' is
an unsupported escape character:
\'

Does Clojure have some intentional reason for not fully supporting the spec
for Java strings, or is this just a bug?

--Mark

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Reader bug?

2013-03-28 Thread David Powell
Internally they might be the same thing, but lexically they aren't; eg,
Clojure string literals can wrap over multiple lines, and Java strings
can't.

On Thu, Mar 28, 2013 at 8:19 PM, Mark Engelberg mark.engelb...@gmail.comwrote:

 According to the Java docs, Java strings support eight escape characters.
 http://docs.oracle.com/javase/tutorial/java/data/characters.html
 One of the valid escape characters is \'

 Clojure strings are supposed to be the same as Java strings, but when I
 type the following string into the Clojure REPL, I get an error that \' is
 an unsupported escape character:
 \'

 Does Clojure have some intentional reason for not fully supporting the
 spec for Java strings, or is this just a bug?

 --Mark

 --
 --
 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
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.