Copy constructors

Guido van Rossum guido at python.org
Sun Aug 12 15:22:54 EDT 2001


[Guido van Rossum]
> > As I just wrote, there will be two kinds of classes: immutable
> > (static) classes and dynamic classes.  The latter can be modified just
> > like classic ones.  But since this makes them less efficient, you have
> > to be explicit about this (when using the new class mechanism, which
> > is not the default in 2.2).

[Alex Martelli]
> May I humbly suggest that this seems to be the same kind of design
> error another great language designer, B. Stroustrup, made when he
> decided that virtual methods (since they are less efficient) must be
> explicitly specified as such, i.e. that the default for a C++ method
> would be "non-overridable" (non-virtual).  [...]

In this case, see my response to Glyph in this thread.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list