On Fri, Sep 20, 2002 at 02:17:42PM -0700, David Whipp wrote:
> Larry wrote:
> > :   $shouldbe3 = (1,2,3) + 0;
> > 
> > It's 3, though not for the reason a Perl 5 programmer would think.
> > (In Perl 6 it's the length of the anonymous array, not the 
> > last value.)
> 
> This kind of clever magic always makes me nervous:
> it introduces subtle bug potentials.
> 
>   (7,8,9) == 3 # true
>   (7,8)   == 2 # true
>   (7)     == 1 # false

Why is this one false?  I'd expect it to be true just as the others.

>   ()      == 0 # true?

Same here.

> . If the [] list-ref composers are to remain,
> there seems no good reason to add a redundant behaviour to
> parentheses. Or am I missing something?

I tend to agree with you here though.  We could both be missing
something :-)

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to