Minimalist Classes

Brendan Eich brendan at
Thu Nov 3 00:17:47 PDT 2011

What is "super-intuitive" about running 'class C' up against an arbitrary expression, which is then evaluated and *copied* (details fuzzy here) as the class prototype?

Arguments about feelings and intuition are not that helpful. Saying why you need to construct a class that way, where no such object copying primitive exists in JS, would be more helpful. IOW, what's the use-case?


On Nov 2, 2011, at 11:03 PM, Matthew J Tretter wrote:

> So to clarify, is the dynamic super issue the whole reason that Jeremy's dynamic construction of classes is considered not doable? Because it seems to me that super may not be worth that trade off. Besides, Python's super implementation requires the hardcoding of the class and that doesn't cause much of a stink. If something similar would give us this super-intuitive syntax and the ability to build classes from arbitrary object literals, it seems like not a big loss.

More information about the es-discuss mailing list