A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-September/028741.html below:

[Python-Dev] type categories

[Python-Dev] type categories [Python-Dev] type categoriesGuido van Rossum guido@python.org
Fri, 13 Sep 2002 00:42:31 -0400
> A few weeks ago I realized there was reason in principle that
                                   ^^^^^^^^^^
Did you mean "was no reason"???

> declaring a class satisfies an interface shouldn't just amount to
> adding the interface to the class' __bases__ (as Guido has been
> suggesting all along).
> 
> Why not? Am we missing somethings?

We'd need a trick to deny an interface that would be inherited by
default.  Something like private inheritance.

There's also the ambiguity of inheriting from a single interface: does
that create a sub-interface or an implementation of the interface?
Of course with your C++ hat on you probably don't care.  On Mondays,
Wednesdays, Fridays and alternating Sundays I don't care either.

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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4