Finding a "safety syntax" for classes

Brendan Eich brendan at mozilla.org
Fri Mar 23 16:53:20 PDT 2012


Allen Wirfs-Brock wrote:
> I'm quite certain that class-side inheritance is a good idea for 
> dynamic class based OO languages with inheritance.   It has proven 
> utility.  There may be things about that kind of language that an 
> individual might not like.  They might object to dynamic, or 
> class-based, or OO, or inheritance.  But if you have that combination, 
> inheritable class methods make a lot of sense.

+1

In particular (and I did not cite your words) I think the interpretation 
of class methods as "static" is a stumbling block, and using |this| 
more, to increase genericity, is good.

The ultimate generic prorgramming model might be purely functional, but 
|this| is "just" another parameter. We shouldn't bend JS to fit on the 
static Procrustean bed of Java or C#.

/be


More information about the es-discuss mailing list