Larry Wall wrote:
>I cringe every time someone says "Parens construct lists in Perl 6."
>Parens don't construct lists in Perl 6.
>
>: Additionally, parentheses have one inconsistency which brackets do not:
>: This is the following case, already shown on perl6-language:
>:
>: $a = (); # $a is a list reference with 0 elements
>: $a = (10); # $a is the scalar 10
>: $a = (10, 20); # $a is a list reference with 2 elements
>: # ...
>:
>: If the ability to construct lists with parentheses is removed, so is this
>: inconsistency.
>
>I don't think that's an important inconsistency.
>
>
So is it even true that
$a = (); # is this really a list reference with 0 elements? Or is
this just undef? There is no comma...
--
Glenn
=====
Not everything that is counted counts,
and not everything that counts can be counted.
-- A. Einstein