Re: [w3c/webcomponents] defineElement should not cache lifecycle callbacks and prototype of a custom element class (#417)

I don't find the argument in https://github.com/w3c/webcomponents/issues/417#issuecomment-192594110 compelling.  Overriding methods on instance is something JavaScript developers regularly do, and I don't think restricting their ability to do that is rather arbitrary.

> Even if we could make it fast, it encourages bad behavior. Custom elements (and ES6 classes) are both about encouraging good behavior.

I completely disagree with that statement. [Late binding](https://en.wikipedia.org/wiki/Late_binding) and [duck typing](https://en.wikipedia.org/wiki/Duck_typing) are two important features of JavaScript.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/417#issuecomment-202694431

Received on Tuesday, 29 March 2016 03:42:54 UTC