[r6rs-discuss] Linefeed and Line Endings
alan at alan-watson.org
Thu Jun 28 12:54:56 EDT 2007
I think I see what is confusing us.
In the list of valid escapes in 4.2.7 we have "\<linefeed>". Then second
next paragraph says:
"Any other character in a string after a backslash is an error. Except
for a line ending, any character outside of an escape sequence and not a
doublequote stands for itself in the string literal. [...] A line ending
stands for a linefeed character."
I think you believe that the last sentence of this paragraph means that
"\<line ending>" should be interpreted as "\<linefeed>", and this in
turn is defined as a valid escape (for nothing).
However, I interpret this as referring only to line endings that are
"outside an escape sequence". Therefore, I do not see a definition for,
for example, "\<next line>", and so I interpret this as an error
according to the first sentence of the paragraph I quoted above.
Is this any clearer?
More information about the r6rs-discuss