golang OO removal, benefits. over python?

Marko Rauhamaa marko at pacujo.net
Mon Mar 10 12:16:30 EDT 2014


Chris Angelico <rosuav at gmail.com>:

> Java's MI simply doesn't exist (that's perfectly pure!), although
> implementing interfaces can do a lot of it; but then you end up
> duplicating piles of code (on the other hand, that's nothing new in
> Java code).

Java 8 has default methods for interfaces. That covers one principal use
case of multiple inheritance.

That said, I find I'm using stray duck-typed classes in Python all the
time. For some reason, inheritance doesn't crop up all that much.


Marko



More information about the Python-list mailing list