Juerd wrote:

Mark Reed skribis 2005-05-25 14:09 (-0400):
That's not a translation. Parens, when not postfix, serve only one
purpose: group to defeat precedence. $foo and ($foo) are always the same
thing, regardless of the $foo.
So, you could then do this to make an array of size 3 in Perl6?
   @a = 1,2,3;

You could, if you changed the precedence of , to be tighter than =.

However, by default, = has higher precedence than ,, so that you need
parens to override this decision: @a = (1,2,3);

Or use

   @a <== 1,2,3;

-- Rod Adams

Reply via email to