News for hackers. Stuff that matters.
Re:Inheritance Often Doesn't Make Sense by kazagistar on Saturday March 17, 2018 @12:18PM (#16607596)
More like interfaces. A lot of OOP languages just did it in a limited way where interfaces for a class are closed. Meanwhile in Haskell or Rust, you can define your interfaces, and then provide implementations of it for existing objects like String. Or the Scale workaround, which basically is implicitly converting to wrapper classes that implement the interface. With the goal being extending existing types with new shared behavior, without the limitations of full inheritence.

There are no comments on this comment yet.