Article of interest: Python pros/cons for the enterprise

Paul Rubin http
Fri Feb 22 06:09:50 EST 2008


Nicola Musatti <nicola.musatti at gmail.com> writes:
> The real point about garbage collection is that it's about the only
> way to ensure that an object of one type is never taken to be of
> another type, e.g. by keeping around pointers to the object that
> occupied its memory before it was reallocated. I believe that this
> degree of type safety is worth having, which is why I favour the
> addition of optional GC to C++.

But in C++, garbage collection makes no such guarantee.  Think of
out-of-range subscripts.



More information about the Python-list mailing list