[bitc-dev] [Feature Request] Invariant Strings
Jonathan S. Shapiro
shap at eros-os.com
Mon Mar 9 15:49:46 EDT 2009
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 <shap at eros-os.com> wrote:
> While mutable string variables are assignable, string content is immutable.
>
> shap, from my phone
More information about the bitc-dev
mailing list