Allen Wirfs-Brock (2013-05-20T21:42:59.000Z)
github at esdiscuss.org (2013-07-12T02:27:21.146Z)
On May 16, 2013, at 5:11 PM, Dmitry Soshnikov wrote: > Hey guys, > > Sorry for the random question (probably it was already discussed). > > What is a current state having mixins/traits syntax along with a class definition? They aren't part of ES6. There have been past discussions about mixin support and they could be considered for a future edition > > Like: > > ```js > class Foo extends Bar { > use EventEmitter, CommonMethodsMixin; > ... > } > ``` having you considered in ES6 exploiting the fact that what follow etends is an expression: ```js class Foo extends mixin(Bar, EventEmitter,CommonMethodsMixin) { ... } ```