[R6RS] string escapes

Matthew Flatt mflatt at cs.utah.edu
Wed Mar 8 14:12:52 EST 2006


At Fri, 03 Mar 2006 08:22:09 +0100, Michael Sperber wrote:
> I would slightly prefer
> 
> \xXXX...;
>         ^ delimiter
> 
> in strings and
> 
> #\xXXX (implicitly delimited)
> 
> in characters.

I agree that this is nicer to read and write:
 "\x61;\x70;\x70;\x6c;\x65;"
versus
 "\x<61>\x<70>\x<70>\x<6c>\x<65>"

My hesitation is that some Scheme systems already support C-like
escapes, and they may accept the former and treat it as "a;p;p;l;e;"
instead of "apple". It's a minor hassle, but for this reason I still
slightly prefer \x<X...>.

Matthew




More information about the R6RS mailing list