why not "new" instead of "constructor"?

Brendan Eich brendan at mozilla.com
Sat Nov 19 14:46:38 PST 2011

On Nov 19, 2011, at 9:54 AM, Axel Rauschmayer wrote:

> I like the idea of replacing the method name “constructor” with something better, but “new” suggests instantiation *and* initialization to me. Is “init” a possibility?

Who said anything about "replacing"?

If we are trying to match or sugar the prototypal pattern, then whatever the constructor name or keyword in the syntax, there must be for class C a back-link C.prototype.constructor.


More information about the es-discuss mailing list