The stupid question is the question not asked | |
PerlMonks |
Re: Re: Class::Interface -- isa() Considered Harmfulby dws (Chancellor) |
on Jan 16, 2003 at 07:37 UTC ( [id://227346]=note: print w/replies, xml ) | Need Help?? |
You don't need isa, you need can.
An interface is a contract. Having a method with a given name isn't. Keeping the conversation at the level of "will this object honor a given contract" (i.e., isa) is preferable to risking false positive based on method names. A baseball player and an airplane both know about "pitch", but the meanings are entirely different.
In Section
Meditations
|
|