3 ms·
> since I was talking about accidentally implementing interfaces and you're talking about deriving new types that you then do not add any methods to. Go makes
by lmm 12y ago
> since I was talking about accidentally implementing interfaces and you're talking about deriving new types that you then do not add any methods to.
Go makes a distinction between interfaces and types? Why?It's useful to have the type system enforce that you only call methods that exist. And a language in which you can't pass around functions as values is crippled - but if your types can contain functions, surely they should behave as interfaces.
> "Multiple inheritance" is a particular thing, not a vague word salad phrase.
Look again at the way the actual context is constructed. You compose together a bunch of traits, which can contain implementation as well as interface; this is multiple inheritance in the sense people normally use the phrase.
> Given the large number of distinct Java cultures that have arisen, surely at least one of them would have valued simple code by now.
I don't think there are distinct cultures. There's a common Java culture, and the corporate influence has been large. And any other languages used in the same kind of setting - C++ and C#, mainly - seem to me to be just as verbose as Java, meaning it's not the language but the organizations using it.