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

> instead of being stuck with single inheritance model it'd be so fun creating components and apps.

The above custom-attributes and element-behaviors are sorts of "mixin"-like ideas, whereby we can mix and match multiple functionalities into one element.

@WebReflection By the way, you can have multiple inheritance with class-factory mixins. Check out my [`Mixin`](https://github.com/trusktr/lowclass/blob/master/src/Mixin.js) tool. Here's the [tests](https://github.com/trusktr/lowclass/blob/master/src/Mixin.js), and here's [an example](https://github.com/trusktr/infamous/blob/master/src/core/Sizeable.js#L17-L24) where my `Sizeable` class extends from both `Observable` and `TreeNode` classes.

-- 
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-481109851

Received on Tuesday, 9 April 2019 05:41:39 UTC