3 ms·
I was in the process of writing a reply that argued against this (mainly because it is not as readable as a class implementation), but I sort of agree with you
by sjroot 8y ago
I was in the process of writing a reply that argued against this (mainly because it is not as readable as a class implementation), but I sort of agree with you as well.
That said, considering how widespread JavaScript is at this point, I think it is in their best interest to cater to more than one programming style.
- josephg 8y ago> That said, considering how widespread JavaScript is at this point, I think it is in their best interest to cater to more than one programming style. No! Stop! Bolting 6 different programming paradigms into a language doesn’t make it easier to learn. It makes it harder, because every programmer who learns JavaScript needs to learn all of the tools of the language so they can read the code written by others. More language features / paradigms make JS less accessible. It is a terrible idea if your goal is to help people learn JS.
- sjroot 8y agoI agree with you, but if they are going to pick one paradigm to build new features for, it is certainly going to be OOP (for better or worse).