in reply to Re: The Accessor Heresy
in thread The Accessor Heresy
Area and Radius properties would be some sort of number objectsWell, they are. I mentioned that you could tie them, if you want to be able to manipulate them more like native numbers. But it's just about as easy to get the value, manipulate it, and put it back. This is exactly the same thing you'd do with parent-level getters and setters.
I don't see any better organization here at all. In fact, it seems quite a bit messier to meIn my view, having getFoo, setFoo, doSpecialThingWithFoo, etc. is analogous to having $var1, $var2, $var3 instead of @var. Having like things grouped together under one heading is the improved organization I'm talking about.
I would be interested to see what you consider to be a maintenance nightmare about the interface. If your beef is with the implementation, well, that's always subject to refactoring.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: The Accessor Heresy
by sauoq (Abbot) on Nov 28, 2005 at 18:01 UTC | |
by Roy Johnson (Monsignor) on Nov 28, 2005 at 19:02 UTC | |
by sauoq (Abbot) on Nov 28, 2005 at 19:59 UTC | |
by Roy Johnson (Monsignor) on Nov 28, 2005 at 20:36 UTC | |
by sauoq (Abbot) on Nov 28, 2005 at 22:19 UTC |