[Python-3000] Abilities / Interfaces

Guido van Rossum guido at python.org
Wed Nov 22 16:55:25 CET 2006


On 11/22/06, Andrew Koenig <ark-mlist at att.net> wrote:
> > Hm, I would think it extends very naturally to instance variables, and
> > I see no reason why it's a particularly bad idea to also extend it
> > (mostly in our minds anyway, I expect) to describe certain behaviors
> > that cannot be expressed (easily) in code.
>
> I think of an ability as a property of an interface rather than an interface
> itself.  For example, I can imagine a single interface having multiple
> abilities.

Hm, that sounds like a case for inheritance. The abilities would be
the bases and the interface would extend all of them. They could all
be called abilities or they could all be called interfaces. The
linguistic metaphor only goes so far...

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


More information about the Python-3000 mailing list