Allen Wirfs-Brock wrote:
Note that the lambda abstraction technique also can support a dynamically 
provided method name:

let aVarNamedMixin = (obj, name) =>  obj mixin {
   [name] () {
     //do something
     super[name]()
   }
}

That's not bad. Never reach for eval where a function will do.

Still, if we can have an API, then all else equal we should.

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to