the annoying, verbose self
Ayaz Ahmed Khan
ayaz at dev.null
Thu Nov 22 14:24:18 EST 2007
braver wrote:
> Is there any trick to get rid of having to type the annoying,
> character-eating "self." prefix everywhere in a class? Sometimes I
> avoid OO just not to deal with its verbosity. In fact, I try to use
> Ruby anywhere speed is not crucial especially for @ prefix is better-
> looking than self.
I've never really understood why some people find that annoying to do. I
make it a point to use, for example, the `this` operator when writing C++
code to avoid implicilty calling/accessing attributes of objects as much
as possible.
--
Ayaz Ahmed Khan
More information about the Python-list
mailing list