Re: Treatment of empty string Per Bothner 06 Apr 2020 21:49 UTC

[Prusumed accidentally erpky sender-only.]

On 4/6/20 2:13 PM, John Cowan wrote:
> Okay, so in that model there is only one location which holds an immutable string (immutable strings have no locations).

This is a *conceptual* model - not necessarily how things are implemented.

> That allows for O(1) string-mutable->immutable.

Only if implemented that way.  That is not how I would expect most implementations to
actually work. (Kawa doesn't.)
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/