Protocols are not mixins - they're interfaces. They specify minimum
behavior required to implement (their primary focus), not simply extended
behavior. In particular, protocols and mixins would be more complementary
than conflicting.

On Sat, Nov 18, 2017, 04:48 Raul-Sebastian Mihăilă <[email protected]>
wrote:

> I updated the proposal with sections for motivation, comparison with other
> kinds of mixins and protocols.
> https://github.com/raulsebastianmihaila/ecma262-definition-mixins-proposal
>
> The protocols, in their current form, are a naive kind of mixin
> imlementation. I think it's better to separate contracts from mixins and
> it's possible to use them together for using the default implementations
> that the protocols may provide.
>
> Would any TC39 member like to champion this proposal?
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to