On Fri, Sep 20, 2002 at 09:02:52PM -0600, John Williams wrote:
> On Fri, 20 Sep 2002, Tanton Gibbs wrote:
> > If this is the case, then can you also have:
> >
> > (,7)
> >
> > What is its length?
>
> Hmm, it's a syntax error in perl5.
I'd advocate it continuing to be a syntax error in perl 6.
> Maybe () is still the empty list in perl6, since it's not ambiguously
> something else.
Sounds good to me..
> But I cannot tell whether (7) is list context or numeric context,
Nope, you can't tell without the surrounding context:
(7) + 0; # numeric
$a = (7); # list
(7) == 1; # boolean (same as (7).length == 1)
> so it seems like the listifying comma is needed to disambiguate,
> especially if it's next to a numeric comparison operator.
I don't think so.
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]