Hacker News new | past | comments | ask | show | jobs | submit login

I disagree with it being OO when it doesn’t have inheritance. No classes or class hierarkies, no passing things along to children. Seems very different than what those who invented OO had in mind.

Structs with functions attached is easy, and not entirely uncommon in procedural and even functional languages.




Interfaces are inheritance, just without code. But interfaces definitely serve at least one role of an abstract base class.


Maybe. But then even FP languages are considered OOP, as most of those languages have records and interfaces.


Yes I agree. Once you have interfaces with default implementations especially, you have non-nested OOP




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: