Class double-bind

Brendan Eich brendan at mozilla.org
Thu Mar 5 22:05:24 UTC 2015


Luke Scott wrote:
> Currently you can do this anyway:
>
> const C = class {};
> if (someCondition) {
>  C = class OtherC {};
> }

You can't: const is assign-once in ES6, and only from the initialiser in 
the declaration.

/be


More information about the es-discuss mailing list