Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Why get() and set() accessor methods are evilby synistar (Pilgrim) |
on Nov 25, 2003 at 18:41 UTC ( [id://310008]=note: print w/replies, xml ) | Need Help?? |
Thanks pg. You explained it much more clearly than I did. The last link I gave advocates returning objects instead of primitive types. This very neatly avoids the problem and moves your program closer to the "everything is an object" ideal of languages like Smalltalk.
In Section
Meditations
|
|