Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Pure Virtual Functionsby zwon (Abbot) |
on Feb 06, 2009 at 22:18 UTC ( [id://742023]=note: print w/replies, xml ) | Need Help?? |
I don't like the idea to check such things at runtime. C++ and Java use interfaces to do checks at compile time, and this makes sense for me; your method would do checking after module was released to production use adding useless loop to every object creation. My opinion is that right place to perform such checks is in the t/*.t and right function is can_ok from the Test::More.
In Section
Meditations
|
|