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

"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.




Agreed. That's actually what I was trying to say. It's an ancient relic of JavaScript's implementation of the class system.




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

Search: