[r6rs-discuss] strange escape sequence in string literals
wingo at pobox.com
Fri Nov 19 10:40:08 EST 2010
On Thu 18 Nov 2010 21:56, Shiro Kawai <shiro at lava.net> writes:
> From: Andy Wingo <wingo at pobox.com>
>> I wonder though, what is the purpose of allowing intraline whitespace
>> before the line ending?
> I don't remember if there was any discussion, but I imagine
> that it might be an annoyance if accidental whitespace between
> the backslash and the line ending changes the meaning.
Given that "[a]ny other character in a string after a backslash is a
syntax violation.", it seems a bit superfluous. What do you report as
the error for `(with-input-from-string "\"foo\\ bar\"" read)' ? Seems
easier and clearer to get
ERROR: #<unknown port>:1:7: illegal character in escape sequence: #\space
or the like as the error.
More information about the r6rs-discuss