3 ms·
My claim was specifically about implementation inheritance. Providing 'consistent interfaces' falls under interface inheritance (which is non-problematic), and
by zozbot234 6y ago
My claim was specifically about implementation inheritance. Providing 'consistent interfaces' falls under interface inheritance (which is non-problematic), and 'inheriting' static data types only is semantically indistinguishable from composition. The problem with OOP is also how it conflates patterns that have very little to do semantically with one another as one overly general thing ('inheritance!') even though the general case is not really useful.
- eyelidlessness 6y agoI understood your claim for what it’s worth. That’s why I cited Swift structs. They’re objects in the historical sense, functional in the immutable sense, and provide explicit inheritance semantics. The rest of my response was about achieving the same purpose without implementation inheritance.
- ragnese 6y agoI didn't think Swift structs could participate in inheritance.
- eyelidlessness 6y agoI stand corrected! I thought I remembered this from reading the Swift docs day one. So much for my long term memory.