Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2018-02-17 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (250 votes). Check out past polls.

    Notices?