News for hackers. Stuff that matters.
Re:Strings Just Got Faster by hajile on Saturday May 03, 2025 @09:55AM (#43879054)
You can get Encapsulation, abstraction, and polymorphism any number of other ways. Inheritance is the only defining property of OOP.

If you removed all the stuff related to inheritance and trying to fix the leaky abstraction that is objects, the language would be a fraction of the size (compare with Go or StandardML for how small a language without inheritance can be).

Re:Strings Just Got Faster by zelphirkalt on Saturday May 03, 2025 @10:25AM (#43879232)
And as for inheritance: Composition over inheritance. So .... just don't do OOP, I guess?