|
|
| more useful options | |
| PerlMonks |
Re: Re: Re: •Re: Why get() and set() accessor methods are evilby Elian (Parson) |
| on Nov 26, 2003 at 14:12 UTC ( [id://310351]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Nah. a[insert method call punctuation here]set_b(foo) is just nasty. If it's supposed to be an assignment it should look like an assignment, and setting a property or attribute is an assignment no matter how it's mediated under the hood.
One of the few places (well, OK, the only place so far, but I won't rule out others existing) that I like lvalue methods or subs.
In Section
Meditations
|
|
||||||||||||||||||||||||