Object.mixin( source, target ) | arguments changed

Kevin Smith zenparsing at gmail.com
Thu Jun 13 10:09:58 PDT 2013


>
>
>
> Based on this and the example shown above, I think it's fair to say that
> reversing the arguments isn't in the ES6's best interest.
>
>
Definitely.  Reversing the argument order would make for awkward code like
this:

    Object.mixin({

        a() {},
        b: 123,
        c
    }, target);

And I agree that we should attempt to find a different name for "mixin", if
possible. (although it means I'll have to change my bleeding edge code yet
again!)

{ Kevin }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130613/edaa8245/attachment.html>


More information about the es-discuss mailing list