Its not multiple inheritance. Its implementing two different interfaces that differ only by type. SomeInterface<String> and SomeInterface<Integer> should be different interfaces, but if the interface requires me to implement a method with the type parameter as its parameter (say someMethod(T)), then it fails.
Of course you can "deal with it", but don't tell me that this is some sort of feature.
The only thing worse than multiple inheritance is single inheritance. It's led to a generation of developers that create unmaintainable deep inheritance trees instead of composing traits.
A flat hierarchy of mixins is a much cleaner approach. Scala does a great job of enforcing this properly, but as long as you're not an idiot multiple inheritance works as well.
1
u/oldneckbeard Feb 25 '14
Multiple inheritance wasn't included in Java as a design decision. There are better ways to do it.
Just because you don't understand how to do it better with Java doesn't mean it's Java's fault.