On Sat, Sep 04, 2004 at 03:34:21PM +0200, Juerd wrote:
: for, while, given, loop, etcetera can all be used without parens. Are
: the parens around the parameter specification still required? If so,
: why? In other languages it may make sense because parens are required
: when calling functions too, but in Perl, they're not.
: 
: sub foo $foo, [EMAIL PROTECTED] {
:     ...
: }
: 
: You may find this ugly. I do think it's ugly, but wonder if it's
: allowed.
How do we know that's not declaring an anonymous function where the
first parameter is of type "foo"?  Also, as soon as you start applying
traits, they look like they belong to the final parameter.  The computer
can probably figure most of these things out, but I think we need to
pity the human here.

Larry

Reply via email to