|
Posted by Peter J. Holzer on January 11, 2008, 4:21 pm
Please log in for more thread options > Is it considered bad form to have a module named X::Y, that is not an X?
> In otherwords, should Y have a 'use base qw/X/' or an @ISA for X?
>
> I know the language doesn't enforce it, but what's the general concensus
> on this?
I don't think that X::Y should generally be a subclass of X. They
should be somehow related, of course, but the relationship can be
anything, "has a" seems to be a lot more common than "is a" in my code.
hp
|