> > The essence of Dmitry's design is to disallow custom allocation, while > allowing custom initialization. This allows you to optionally decouple the > two stages when necessary (upgrades, cloning, etc.) while also getting the > goodness where author code doing `new MyElement(...)` calls both built-in > allocation and custom initialization immediately. >
If we go with a private state design where the internal slots are not dynamic, but fixed at birth (which is where we'd like to go), then a "becomes-like" solution for custom elements wouldn't be compatible with it. It would mean that custom elements wouldn't be able to have usable private slots.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

