Benjamin (Inglor) Gruenbaum (2015-02-24T01:41:32.000Z)
> A programmer who wrote the assignment aPusher.push =
MyArray.prototype.push was probably thinking that they could just reuse the
push method from MyArray.prototype and that the super.push call within it
would start searching for a push method at the [[Prototype]] of aPusher.
But it doesn't.

As a programmer - I wouldn't think it'd make that call. I don't think that
it's safe to say most JS developer would expect `super` to call `Pusher`
here. JS programmers are used to dynamic `this` and ad-hoc mixins but I
don't think they would expect dynamic `super` when "borrowing" methods like
that. I think people view `this` as context and `super` as an alias but
time will tell.

Care to share more interesting use cases for `mixin`?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150224/5a30b64b/attachment.html>
d at domenic.me (2015-03-06T00:46:24.163Z)
> A programmer who wrote the assignment aPusher.push = MyArray.prototype.push was probably thinking that they could just reuse the push method from MyArray.prototype and that the super.push call within it would start searching for a push method at the [[Prototype]] of aPusher. But it doesn't.

As a programmer - I wouldn't think it'd make that call. I don't think that
it's safe to say most JS developer would expect `super` to call `Pusher`
here. JS programmers are used to dynamic `this` and ad-hoc mixins but I
don't think they would expect dynamic `super` when "borrowing" methods like
that. I think people view `this` as context and `super` as an alias but
time will tell.

Care to share more interesting use cases for `mixin`?
d at domenic.me (2015-03-06T00:46:04.000Z)
A programmer who wrote the assignment aPusher.push =
MyArray.prototype.push was probably thinking that they could just reuse the
push method from MyArray.prototype and that the super.push call within it
would start searching for a push method at the [[Prototype]] of aPusher.
But it doesn't.

As a programmer - I wouldn't think it'd make that call. I don't think that
it's safe to say most JS developer would expect `super` to call `Pusher`
here. JS programmers are used to dynamic `this` and ad-hoc mixins but I
don't think they would expect dynamic `super` when "borrowing" methods like
that. I think people view `this` as context and `super` as an alias but
time will tell.

Care to share more interesting use cases for `mixin`?