[Python-ideas] PEP: Shorthand Symbol for "self"

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 28 02:38:44 CEST 2008


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.

-- 
Greg



More information about the Python-ideas mailing list