Deprecate self

Alex Martelli aleaxit at yahoo.com
Wed Apr 18 11:36:12 EDT 2001


"Rainer Deyke" <root at rainerdeyke.com> wrote in message
news:FxhD6.43909$J%5.14879289 at news2.rdc2.tx.home.com...
> "Dave LeBlanc" <whisper at oz.net> wrote in message
> news:9bji5k$417$0 at 216.39.170.247...
> > Since self is used for every method of every class, isn't it a bit
> > redundant? I don't know of another OO language that makes you manually
> > carry around the "this"/"self" pointer/reference...
>
> My C++ code has become much more readable since I started referring to
> member variables through 'this'.

I agree on this point, but trying to make 200 dyed-in-the-wool
C++ programmers start using this->foo everywhere is turning out
to be pretty hard despite "acknowledged C++ guruhood":-).


Alex






More information about the Python-list mailing list