On Wed, Dec 11, 2002 at 07:08:58PM -0800, Brent Dax wrote:
> But when you know the type beforehand, there shouldn't *be* any
> ambiguity.  You can see the methods in that class, and you know how many
> arguments the biggest implementation of a multimethod[1] takes.  Just
> assume that that's the one being called.
> 
> Just to make things clear:
> 
[ snip ]
>       $obj2.x $a, $b, $c;     # OK, like $obj2.x($a, $b), $c
> 
> I do *not* expect Perl to do the impossible or even the very difficult.
> This isn't even very difficult.

What you continue to make clear to me is that this is a maintenance
nightmare without the parentheses.  Even rules like "always use the
one with the biggest matching signature" don't help.  What happens
when a developer multies your method by adding another parameter?

It seems to me that the simplest disambiguating rule is to require the
parentheses on methods.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to