3 ms·
A quote from the OP: "Russell said that Google engineers are also developing a proposal for the next version of JavaScript to add class concept. Class is a core
by doug1001 15y ago
A quote from the OP: "Russell said that Google engineers are also developing a proposal for the next version of JavaScript to add class concept. Class is a core element of object-oriented programming language, it is the basis of data and code reuse. JavaScript does not support class, the programmer can only use function calls to complete some of the features which is a waste of time to write the code that is not conducive to reuse."
I wonder if this portion of the Proposal is based on a thoughtful critique of javascript. Javascript's object-oriented paradigm, prototypal OOP, gives JS dynamic, class-free objects, and some would say that's a good thing--perhaps a great thing. In addition, the Prototypal paradigm was developed much later than Class-based OOP--nearly two decades later, and the developers of the former certainly knew of the latter, and learned from it. Given that, i wonder if this part of the Proposal isn't recommending retrograde techniques rather than improvements.