Re: [w3c/webcomponents] The is="" attribute is confusing? Maybe we should encourage only ES6 class-based extension. (#509)

> I'm advocating for functions. Just functions. They take a single argument that is the class. No additional API additions

You seemed to forget why namespaces are useful. Your functions cannot be just global scope pollution, those functions belongs to Custom Elements, so let's put them in the only global namespace introduced for the goal: the `customElements` registry, or its `CustomElementRegistry` class (I don't like typing that much, I'm being honest)

> Polyfills aren't immune to bugs. Case in point: one of the reasons we stopped using web components is that the polyfills were horribly unstable.

This is upside down. I've been advocating against using **transpilers** because these are the one causing instability! Have you read [this bug](https://github.com/babel/babel/issues/4480) at all? You cannot trust transpilers, not polyfills!!!

I'm growing white hair to [advocate about transpilers problems](https://www.webreflection.co.uk/blog/2016/08/30/js-super-problem), or [suggest solutions](https://github.com/babel/babel/issues/4480#issuecomment-262476478),or [create libraries immune to transpilers](https://medium.com/@WebReflection/a-case-for-js-classes-without-classes-9e60b3b5992#.hovchearj), and you tell me the problem is [my super stable and tested polyfill](https://github.com/WebReflection/document-register-element/#document-register-element-) used even by the production delivered [Google AMP Project](https://github.com/ampproject/amphtml/blob/master/package.json#L28)?

Sorry but it's clear we're **not** on the same page here so I'll happily re-drop this thread.

I also suggest you to watch my talk at [wcremoteconf](https://wcremoteconf.com), you were giving yours too the day after.

Best Regards.

-- 
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/509#issuecomment-281501247

Received on Tuesday, 21 February 2017 22:23:00 UTC