Re: [Scheme-reports] fresh empty strings
John Cowan 24 Jan 2012 18:58 UTC
Per Bothner scripsit:
> (Kawa does use separate Java classes for mutable and immutable strings,
> though it didn't used to - and I'm thinking about adding another class to
> support O(1) indexing of strings containing non-basic-plane characters.)
There's a case to be made for using three classes for the Latin-1, BMP, and
full Unicode repertoires. I know of one (non-Scheme) package that does this,
plus using java.lang.String for immutable strings.
On the other hand, in fairly capacious environments like the desktop,
it may be the Right Thing to use only 32-bit mutable strings, especially
considering how much more common string literals are in typical Scheme code.
--
John Cowan http://www.ccil.org/~cowan <cowan@ccil.org>
"Any legal document draws most of its meaning from context. A telegram
that says 'SELL HUNDRED THOUSAND SHARES IBM SHORT' (only 190 bits in
5-bit Baudot code plus appropriate headers) is as good a legal document
as any, even sans digital signature." --me
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports