393
Switching to OCaml bois
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
you can write oop without inhetitance
There's the camp of those who say that inheritance is synonymous with OOP. I'm not in that camp, but I'd like to see you duke it out with them.
That’s just structs and unions right?
You will still have private/public sections, interfaces (unless you class them as inheritance), classes and instances, the SOLID principles, composition over inheritance. OOP is a lot more than just large family trees of inheritance, a way of thinking that's been moved away from for a long time.