Re: SRFI 130 - "span" prefix
John Cowan 05 Dec 2015 07:06 UTC
Shiro Kawai scripsit:
> Gauche's string is immutable internally. Substring shares the string
> body (except the case that you take out a small portion from a long string;
> in that case we copy that portion to avoid retaining entire string
> unnecessarily)
>
> String mutation is "emulated" with an extra indirection (create a new
> immutable string, then swap the pointer), only to comply RnRS.
How do you reliably detect whether there are any substrings so that
you can copy them? That takes close cooperation from the GC.
--
John Cowan http://www.ccil.org/~cowan xxxxxx@ccil.org
What is the sound of Perl? Is it not the sound of a [Ww]all that people
have stopped banging their head against? --Larry