A simple solution is to make:
class Foo { /* ... */ }
equivalent to:
const Foo = class Foo { /* ... */ }
instead of the equivalent desugaring with `let`. That way, anyone who want to
play with a same-named external binding must be explicit about their intention:
let Foo = class { /* ... */ } // one binding
let Foo = class Foo { /* .... */ } // two bindings
—Claude
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss