3 ms·
"new", I believe, is actually an ancient relic of the prototypal class system. I believe it is quite the opposite. It was a failed attempt to make the prototyp
by praptak 17y ago
"new", I believe, is actually an ancient relic of the prototypal class system.
I believe it is quite the opposite. It was a failed attempt to make the prototype-based object system look like class-based one. I vaguely remember reading this opinion in Crockford's "Javascript:The Good Parts" book.
- jmtulloss 17y agoAgreed. That's actually what I was trying to say. It's an ancient relic of JavaScript's implementation of the class system.