in reply to OO design: abstract class or can()?

Put the no-op method in. That simplifies your client code so that it has to conform to a simpler API vs. having to know internals.

Or, put it another way, what would you do to me if I published something to CPAN that required the can() crap?


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: OO design: abstract class or can()?