Still leaning toward the first way, but I'm curious which of these sounds better to other OO coders. Does the can() approach sound evil?
Not evil, but I'd still prefer the null method option myself. Removes a conditional (which makes the code simpler in my eyes), and gives an explicit sub in the base module to document.
In reply to Re: OO design: abstract class or can()?
by adrianh
in thread OO design: abstract class or can()?
by perrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |