[r6rs-discuss] Lexical Syntax
alan at alan-watson.org
Wed Nov 14 12:16:38 EST 2007
William D Clinger wrote, quoting me:
>> The case-sensitivity of #\space and \#newline in the R6RS make it
>> dangerous to attempt to read R5RS data using the R6RS read procedure.
> The case-sensitivity of symbols in the R6RS makes
> it dangerous to attempt to read R5RS data using the
> R6RS read procedure. Case-sensitivity of #\space
> and #\newline in the R6RS does not add a whole lot
> to the danger that's already there.
If I read an R5RS symbol using the R6RS read procedure, I still get a
symbol, although I may be surprised by its case. It is, however, easy to
remove the possibility of surprise by using a procedure that replaces
symbols in a datum by appropriately case-converted equivalents.
If I attempt to read #\SPACE or #\NEWLINE using the R6RS read procedure,
I get a &lexical exception.
These seem quite differently dangerous to me.
More information about the r6rs-discuss