To amplify:

String content (the constituent characters) is immutable. This
enforces copy-on-write behavior.

The reason for this is that, for space reasons, strings are *not*
merely vectors of characters. Internal to a string, different code
points may occupy different amounts of space. This makes
update-in-place more or less impractical. The current decision
intentionally lives several implementations available to the runtime
that support different degrees of optimized access.

shap

On Mon, Mar 9, 2009 at 3:45 PM, Jonathan S. Shapiro <[email protected]> wrote:
> While mutable string variables are assignable, string content is immutable.
>
> shap, from my phone
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to