Finding a "safety syntax" for classes
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.
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#.
More information about the es-discuss