On 6/3/05, Joshua Gatcomb <[EMAIL PROTECTED]> wrote:
> What I would like to be able to do is:
> 
> my $str = 'hello';
> my @chars = $str.chars; # <h e l l o>

I can't see this being a problem at all. For starters, the whole "what
is a character" issue is just as relevant to +($foo.chars) as it is to
list($foo.chars).

Secondly, the "use bytes/codes/graphs/langs" pragmata should be
sufficient to define what a character is in any dynamic context. The
whole "should we decompose ligatures?" question (raised in the earlier
thread) can be answered by the appropriate "use langs".

And finally, it should be easy enough to do the efficient thing in
scalar context.


Stuart

Reply via email to