No such thing as a small change | |
PerlMonks |
Re: The Accessor Heresyby gaal (Parson) |
on Nov 28, 2005 at 17:33 UTC ( [id://512295]=note: print w/replies, xml ) | Need Help?? |
One of the huge practical motivations for using accessors in Perl 5 was not encapsulation at all, but reducing typo bugs on field names. Since the mainstream method for fields is still straight hash elements, those can happen a lot.
If you use fields or employ another technique (I see you're familiar with some of those), that motivation goes away.
In Section
Meditations
|
|