Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Generally accepted style in Perl objects

by coreolyn (Parson)
on Dec 29, 2000 at 03:53 UTC ( #48727=note: print w/ replies, xml ) Need Help??


in reply to Generally accepted style in Perl objects

Well you're seriously wasting overhead programming in OO if you directly access the vars. As Damian Conway say's

Thou shalt not access thy encapsulated data directly lest thou screwe it up.1

By allowing yourself to take advantage of the casual nature of perl OO, you open yourself up to the problems that OO design seeks to avoid

coreolyn


1Object Oriented Perl pg. 82


Comment on Re: Generally accepted style in Perl objects

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-09-19 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (144 votes), past polls