On Friday 02 April 2010 at 13:22, Nat Tuck wrote:
> In any case, here's a rough draft of an application for the Immutable
> Strings project:
>
> http://pandion.ferrus.net/gsoc/proposal-immutable_strings.txt
The draft says:
One problem that will have to be considered is the efficient
implementation of strings in languages that assume mutable strings
and are likely to do operations that make a copy per mutation
inefficient. The most obvious solution is to provide a character
array datatype they can use in place of normal strings. Whatever
the solution, making sure that it is fully supported with utility
functions and such is solidly in scope for this project.
I suggest instead that high-level languages use a PMC to represent strings, as
such a container can assume container semantics.
With that said, it's reasonable to consider providing also a StringBuilder of
some sort, but using a String PMC is a well-established pattern so far.
-- c
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-dev