Python and Schools

Courageous jkraska at san.rr.com
Sat Apr 12 13:21:30 EDT 2003


>Let's put it this way: in C++ you have to use this->foo SOME of the
>time (to avoid running afoul of extremely subtle and deuced bugs
>in some templates) but it's quite hard to predict exactly when you'll
>need to do it.  With Python, you ALWAYS use self.foo (one character
>less than C++'s this->foo!-) and thus your code is more regular and
>uniform, there is no risk of ugly conventions such as naming member
>variables m_this and m_that (popular in several C++ shops), no bugs
>due to accidental local "hiding" of a member variable by a local one
>(I've taught and consulted on C++ long enough to have seen THAT
>happen many, MANY times -- and not to idiots, either... rather, to
>very good professional programmers!) -- a HUGE amount of conceptual
>AND pragmatical simplification of your life.

Alex Martelli demonstrates once again a fine talent at burying the
hatchet. I rather doubt there can *be* much of a reply to this fine
retort.

C//





More information about the Python-list mailing list