in reply to Class attribute get/set approach flaws?
Another reason I don't like it is that, as presented, anyone can set and inspect any attribute. That includes typoed attributes, or just someone being "nasty".
And I fail to see the benefit for the user of this class. To me, the only advantage I can see is that the author of the module saves adding a few accessors - at the expensive of an inflexible, complicated, do-it-all routine.
Good modules are optimized for the user, not the author. (Even if the same person performs both roles).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class attribute get/set approach flaws?
by radiantmatrix (Parson) on Nov 29, 2005 at 16:00 UTC |