Hacker News new | ask | show | jobs
by Cthulhu_ 1035 days ago
This is one reason why I love Go, in that it doesn't follow.

I've been primarily doing Javascript and the like for the past decade, and while I appreciate new features like functional operations added to the standard library - although that was a long process - and arrow functions, I lost it when they added object-oriented structuring like classes, but only half an implementation because there wasn't any good access modifiers. And they added OOP before they added modules and imports. I don't understand.

2 comments

JS has been OOP since the beginnings, one might even argue that prototype-based inheritance is the real deal compared to classes.
JavaScript like SELF and NewtonScript is based on prototypal inheritance as OOP model, even classes in JavaScript are mostly syntax sugar for how that is done at low level.