Re:Ask YC: What exactly is so hard about OO?
by lisper on Tuesday June 03, 2008 @12:23PM
(#208039)
But using instance.a is not wrong because you can override __getattr__. And if overriding __getattr__ is not the right thing then what you are writing is not a getter. Under no circumstances is it justified IMHO to write a get_X method. (And if your language doesn't let you override __getattr__ then you need a better language.) IMHO of course.
[ Parent
| on HN ]
There are no comments on this comment yet.