Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Pure Virtual Functions

by zwon (Abbot)
on Feb 06, 2009 at 22:18 UTC ( #742023=note: print w/replies, xml ) Need Help??


in reply to Pure Virtual Functions

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://742023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-04-08 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (44 votes). Check out past polls.

    Notices?