Summary: prototypes as classes

Axel Rauschmayer axel at rauschma.de
Tue Jun 28 17:37:30 PDT 2011


> From: Brendan Eich <brendan at mozilla.com>
> Date: June 29, 2011 2:29:21 GMT+02:00
> 
> But that may not suffice to get the cows off the classy path. It may just complicate new and instanceof, with few users benefiting. I claim we can do little to control the outcome in terms of adoption. The downrev browser problem, plus the classical OOP patterning in many devs' brains, count more than our exhortations.
> 
> Would it be a better world if JS had always named the prototype, wired up new C to use C.constructor, etc.? Maybe. But that road was not taken, and that makes all the difference.


Agreed, that does indeed weigh heavily.

-- 
Dr. Axel Rauschmayer

axel at rauschma.de
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110629/4f964667/attachment.html>


More information about the es-discuss mailing list