Article of interest: Python pros/cons for the enterprise
Nicola Musatti
nicola.musatti at gmail.com
Fri Feb 22 07:18:00 EST 2008
On Feb 22, 12:09 pm, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
> Nicola Musatti <nicola.musa... 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.
I'm aware that the guarantee would not be perfect. For instance
another source of problems could be holding pointers to local
variables that went out of scope. Yet I'm convinced that even such
partial guarantee is worth having.
Cheers,
Nicola Musatti
More information about the Python-list
mailing list