[Python-3000] Builtin iterator type
Aaron Bingham
bingham at cenix-bioscience.com
Mon Nov 20 11:37:46 CET 2006
Bill Janssen wrote:
>>Java interfaces are very useful, however. Java programming seems to be
>>less and less about inheritance and more and more about implementing
>>interfaces; at least it does amongst Java programmers with taste :-)
>>
>>
>
>It seems to me that that's where Python has a real advantage. With
>real support for multiple inheritance, Python "interfaces" could be
>real classes (either like real Java classes or Java abstract classes),
>perhaps providing default implementations. You get the goodness of
>mix-ins, along with interface communication.
>
I agree. In Java, interfaces are necessary because multiple inheritance
is not supported. I see no good reason to add an additional language
mechanism for interfaces when multiple inheritance would do the job, AFAICT.
Regards,
--
--------------------------------------------------------------------
Aaron Bingham
Senior Software Engineer
Cenix BioScience GmbH
--------------------------------------------------------------------
More information about the Python-3000
mailing list