- From: Domenic Denicola <d@domenic.me>
- Date: Thu, 15 Jan 2015 18:09:31 +0000
- To: Yehuda Katz <wycats@gmail.com>, Dimitri Glazkov <dglazkov@google.com>, Erik Arvidsson <arv@google.com>
- CC: Dmitry Lomov <dslomov@chromium.org>, WebApps WG <public-webapps@w3.org>
Just to clarify, this argument for symbols is not dependent on modules. Restated, the comparison is between:
```js
class MyButton extends HTMLElement {
createdCallback() {}
}
```
vs.
```js
class MyButton extends HTMLElement {
[Element.create]() {}
}
```
> We're already doing some crude namespacing with *Callback. I'd expect that as soon as the first iteration of Custom Elements is out, people will copy the *Callback style in user code.
This is a powerful point that I definitely agree with. I would not be terribly surprised to find some library on the web already that asks you to create custom elements but encourages you supply a few more library-specific hooks with -Callback suffixes.
Received on Thursday, 15 January 2015 18:10:01 UTC