Definition mixins

Isiah Meadows isiahmeadows at gmail.com
Sat Nov 18 17:19:26 UTC 2017


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ă <raul.mihaila at gmail.com>
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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171118/cba10d8c/attachment.html>


More information about the es-discuss mailing list