develooper Front page | perl.perl6.language | Postings from June 2005

Re: SMD is for weenies

Thread Previous | Thread Next
Sam Vilain
June 30, 2005 18:42
Re: SMD is for weenies
Message ID:
Yuval Kogman wrote:
> As I understand it SMD is now not much more than a mechanism to
> place a constraint on the MMD, saying that there can only be one
> method or subroutine with the same short name.
> Why is this the default?

Otherwise you lose this quite useful warning if the signatures didn't

    method foo redefined at ...

I agree with you MMD is very cool, and I use it a lot.  But I don't
mind clarifying the intent with "multi"; this "overloading" is
considered by some to be surprising to new programmers.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About