News for hackers. Stuff that matters.
Re:An Introduction to JavaScript's "this" by praptak on Sunday September 27, 2009 @10:41AM (#846883)
"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.

Re:An Introduction to JavaScript's "this" by jmtulloss on Sunday September 27, 2009 @03:34PM (#847165)
Agreed. That's actually what I was trying to say. It's an ancient relic of JavaScript's implementation of the class system.