Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: OO design: abstract class or can()?

by adrianh (Chancellor)
on Mar 23, 2007 at 13:20 UTC ( #606225=note: print w/ replies, xml ) Need Help??


in reply to OO design: abstract class or can()?

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.


Comment on Re: OO design: abstract class or can()?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-09-17 03:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls