[R6RS] Unicode scalar value escape sequences

William D Clinger will
Tue Mar 22 13:33:39 EST 2005

> While we're on the subject of strings, does anyone have a strong
> opinion on mutability of strings.  Would it improve the language to
> have immutable strings?


> Would it improve the language to have only immutable strings?

Yes, but that would break too much code.  I think the right thing
to do is to leave Scheme's mutable strings pretty much as is, but
to add immutable strings as a separate layer, overloading the R5RS
string operations that don't have side effects (e.g. STRING-LENGTH,
STRING-REF) to work on both immutable and mutable strings (as they
already do, thanks to the immutability of literal strings).


More information about the R6RS mailing list