Just another Perl shrine | |
PerlMonks |
Re: Getter and Setter Function Namesby vek (Prior) |
on Apr 09, 2003 at 23:24 UTC ( [id://249472]=note: print w/replies, xml ) | Need Help?? |
Personally I'm with Mr. Muskrat on this one. I think it's far nicer to have self documenting code i.e $foo->get_salary as there can be no question as to what it's actually doing. Remember, someone has to maintain the code, and it might not always be you :-) /me speaking from experience - trying to figure out code written by a former coworker :-) -- vek --
In Section
Seekers of Perl Wisdom
|
|