On Wed, Nov 27, 2013 at 10:15 AM, Rick Waldron <waldron.r...@gmail.com>wrote:
> # Nov 20 Meeting Notes > > > > #### Consensus/Resolution > > - Remove Object.mixin > - "toMethod()" wins -- debate about argument order > > > > Function.prototype.toMethod(home[, mname]) > > > A small observation: the toMethod is cool, and Allen recently showed an example of how it can be applied: ``` (function(){super()})() //throws because unbound super (function(){super()}).toMethod(Array.prototype,"toString").call([])///ok ``` The only thing I'm worried (and that Mark mentioned), is that the super-inheritance is tightly related to the class-based sugar. While the approach above again exposes the prototypes implementation detail via this `.prototype` stuff. Probably should be two: ``` .toMethod(Array, 'toString'); // to (instance/proto) method .toStaticMethod(Array, 'toString'); // constructor's method `` The former, as mentioned, works with the `.prototype` not exposing this detail to the user-level code. Dmitry
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss