by HumanDrivenDev · 8y ago · 0 comments
I also really wish people wouldn't try and dismiss concepts they're ignorant of:
because multiple inheritance is incompatible with the goal of implementation inheritance due to the diamond problem
I have no idea what that sentence is supposed to mean. It doesn't make sense even given their own definition of implementation inheritance.
Functional programmers call this the "expression problem"
And you don't need to struggle with principles like "is-a relationship" which can be confusing.
That seems incredibly subjective. It's 50/50 for me, I just go with the grain with the language I'm using. I'll admit that in practice pattern matching wins due to the depressing lack of multiple dispatch in OO and pseudo-OO languages.
And you don't need to struggle with principles like "is-a relationship" which can be confusing.
Why would you struggle with that question with inheritance and not DUs? what is it about DUs that make it not an issue?