[Python-ideas] PEP: Shorthand Symbol for "self"
george.sakkis at gmail.com
Thu Aug 28 03:10:10 CEST 2008
On Wed, Aug 27, 2008 at 8:38 PM, Greg Ewing <greg.ewing at canterbury.ac.nz>wrote:
Russ Paielli wrote:
>> Lets not forget that C++ and Java use zero-character identifiers for
>> "self", and I don't hear a din of complaints that it harms readability.
> I'm not so sure about that. Frequently people adopt
> conventions such as always writing this->x, or naming
> all instance variables with an "m_" prefix, suggesting
> that zero characters is considered a problem by many.
And that's despite the fact that they have more assistance from IDEs for
autocomplete, highlighting, etc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas