>>>>> "BD" == Brent Dax <[EMAIL PROTECTED]> writes:

  BD> Fine.  In Perl 5 we have a restriction on when you can and can't use
  BD> parens on a subroutine--you can omit them when the sub is predeclared,
  BD> and Perl will assume that no magic is going on.  I see nothing wrong
  BD> with this rule.

but you are conflating plain subs and method calls. perl6 can deal with
predeclared subs and fixed argument signatures at compile time like
perl5 can. but the same is not true in either 5 nor 6 with method calls
as they can only be looked up at run time. the arguments passed to a
method can be checked then against know method signatures and maybe
multimethods could (dunno who or when that is decided. i think the class
has to be declared as having multimethods) be invoked based on the
arguments.

so the need for parens on method calls is there if you have any possible
compile time ambiguity of how many arguments to pass in.

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org

Reply via email to