On Sat, Apr 02, 2005 at 11:27:09PM +0300, wolverian wrote:
: On Mon, Mar 21, 2005 at 03:31:53PM +0100, Juerd wrote:
: > In fact, won't things be much easier if shift and pop workend on strings
: > as well as on arrays? Now that we have multis, this should be easy to
: > do.
:  
: How about defining String is Array? I don't know if I would like that,
: but it's an idea.

Unfortunately it'd have to be an Array of String, since most characters
these days are not fixed width, even in UTF-16.  There's no reason
in principle we couldn't do that, but it'd be a lot of extra overhead
for most strings, and you can always split to an array explicitly
if you really need that.  (Plus it would only encourage people coming
from C to keep thinking in C.)

That being said, we will have a way of taking an array of strings and
treating it as a single string for pattern matching.  But there's no
guarantee that the array elements correspond to individual characters
unless you made it that way yourself to begin with.

Larry

Reply via email to