Python is just as good as C++ for real apps

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Wed Jan 23 15:20:18 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----

Hello Donovan,

23 Jan 2002, 04:10:39, you wrote:
> To say C++ has "major scaling limitations" is just absurd, given
> the amount of code written in this language. Of course python
> doesn't share C++'s weaknesses, but it doesn't share all of its
> strengths either.

I too use primarily C++ (if it needs to go real fast which some times
goes ad absurdum by using the STL, though) and Python but I must say
that switching from one to the other needs some serious change in my
mind since good Python code is probably the opposite from good C++
code. In Python you want that polymorphic behavior whereas C++
strives
to get away without it. That having said, I'm one of the people who
would love to see Python with an optional static typing mode because
after having programmed C++ I often end up with errors that could
have
been avoided the first time if only the interpreter would have told
me
that the type doesn't fit.

While the whole memory management/pointer/reference/typing stuff from
C++ is
missing in Python and this helps to keep coding Python easy this also
requires quite some discipline from the programmer not to feed bogus
objects into functions that don't like them...





Best regards,
 Gabriel

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBPE8M9cZa2WpymlDxAQHSqQgAwQJwaZ6xOyV5OkCAlzP4zkVOnGP2K9cf
9WtwxxCVx5vrrPRyolFPj10LYXf6N0QI26ii6XWEpi3KTPlErVohdQ//uKVKLuAj
9qPSpZEV6W5c7g5k2uPg8f/g1jCg00Xf0Wme5qKgPf4EHjX3GItrFQw7KkhsHfG1
cC8+BHJfAZ16FLS4BUyCjhoI2BlcpU5sm2wIERVthOpAZEJbJQFmZfbecLJ9ZCVE
kQqGrXAiMlElWpociBn5yYkhQkCtKcfBnMkzy3obRe49tcRH/WdJdMyK+cdcamCD
WPZiryQ+jFtyjJQIMYqtnqNEYJ8c8e8vFYd20GyCMZwHpM0yldGDqw==
=aVae
-----END PGP SIGNATURE-----





More information about the Python-list mailing list