in reply to Re: Why get() and set() accessor methods are evil
in thread Why get() and set() accessor methods are evil
(Also this is not an OO issue, but merely a Perl issue.)
The example might have shown a problem specific to Perl, but the idea is applicable to any language. A Java API that returns an array of integers stored in an otherwise private field would be just as problematic.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Why get() and set() accessor methods are evil
by pg (Canon) on Nov 25, 2003 at 18:07 UTC | |
by BUU (Prior) on Nov 25, 2003 at 18:43 UTC | |
by hardburn (Abbot) on Nov 25, 2003 at 18:57 UTC |
In Section
Meditations