Perl: the Markov chain saw | |
PerlMonks |
Re: Getter and Setter Function Namesby zby (Vicar) |
on Apr 10, 2003 at 15:04 UTC ( [id://249636]=note: print w/replies, xml ) | Need Help?? |
When you can do both get and set on a property, then I personally like to have direct access to the variable. For me this is the clearest way:
I just don't see the any advantage in using a specialized functions for it. Getting and setting values of variables is something so basic for programming that I find it the most intuitive way for the task.
In Section
Seekers of Perl Wisdom
|
|