Too many 'self' in python.That's a big flaw in this language.
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Thu Jun 28 08:38:23 EDT 2007
More information about the Python-list mailing list
Thu Jun 28 08:38:23 EDT 2007
- Previous message (by thread): Evolution of a pythonistas!
- Next message (by thread): Too many 'self' in python.That's a big flaw in this language.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Alex Martelli wrote: > Bjoern Schliessmann <usenet-mail-0306.20.chr0n0ss at spamgourmet.com> > wrote: >> Mh, strange, I personally like to use "this.a" in C++, to make >> clear I use an instance variable. > That would be nice, unfortunately your C++ compiler will refuse > that, and force you to use this->a instead;-). Sure, thanks. Before I last used C++ I was forced to use Java -- where I would write "this.<member>". ;) > Many programming shops use naming conventions instead, such as > my_a or a_ (trailing underscore for member-variables) -- I've even > seen the convention this_a which IMHO is silly (at that point you > might as well use this->a and avoid the 'convention'!-). ACK. > For the curious: the explicit-self idea is essentially taken from > Modula-3, a sadly now forgotten language which still had an impact > on the history of programming. Mh, I'm going to read some about this one. Regards, Björn -- BOFH excuse #4: static from nylon underwear
- Previous message (by thread): Evolution of a pythonistas!
- Next message (by thread): Too many 'self' in python.That's a big flaw in this language.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list