|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Why get() and set() accessor methods are evilby demerphq (Chancellor) |
| on Nov 26, 2003 at 19:34 UTC ( [id://310432]=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.
I found this whole thread interesting. When i read the title I thought "yep, I agree with that" but then on reading closer it wasnt even what I was thinking at all! :-) What I thought you meant was all those aweful sub like
and its correspondingly ugly set_foo. If you had been talking about those being evil then i would agree. :-) Perl offers fancier and IMO more intuitive ways to do things:
(or a variant thereof, you can golf it down nicely. :-)
---
demerphq First they ignore you, then they laugh at you, then they fight you, then you win.
In Section
Meditations
|
|
||||||||||||||||||||||||