Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: OO Inheritenceby exussum0 (Vicar) |
on May 25, 2004 at 23:15 UTC ( [id://356409]=note: print w/replies, xml ) | Need Help?? |
Croaking in your constructor is a bit harsh. How about undef? As chromatic said, if you dont' read documentation about something, like this, you get what you deserve. I don't agree with that, because if someone carelessly creates something great that ignores croak, and then you use that, you may find yourself with a bug 'cause of some odd situation.
At least w/ undef, you can be more forgiving.
In Section
Meditations
|
|