I come not to bury C++, but to praise it...
Oren Tirosh
oren-py-l at hishome.net
Fri Jan 16 15:40:51 EST 2004
On Wed, Jan 14, 2004 at 10:35:16AM -0500, Jp Calderone wrote:
> On Wed, Jan 14, 2004 at 09:42:52AM -0500, Derek wrote:
> > [snip]
> >
> > I also use C++ and Python as my main languages and I agree with your
> > comments. However, I don't agree that Python is inherently "safer"
> > than C++. At best I see it as a tie. For example, C++ let's you
> > corrupt memory among other "unsafe" things, most of which can be
> > avoided by using standard containers, smart pointers, etc. Python
> > lets you do "unsafe" things such as passing an object to a function
> > when it makes no sense to do so, which can lead to nasty runtime
> > surprises.
> >
>
> A traceback is *much* less nasty than memory corruption.
A traceback is also much less nasty than deciphering a 1000-character
long compiler error message reported in code that uses a heavily
templated library.
Oren
More information about the Python-list
mailing list