Concise Method Binding

Rick Waldron waldron.rick at gmail.com
Tue Nov 10 23:58:07 UTC 2015


On Mon, Nov 9, 2015 at 8:45 PM JD Isaacks <jd at jisaacks.com> wrote:

> Considering the proposals for both concise methods and the bind operator I
> think it would be a great addition to be able to use them together.
>
> I am already seeing a lot of this:
>
> class Foo {
>   bar = () => {
>     // bound
>   }
>   buz() {
>     // unbound
>   }
> }
>
>
>
Can you clarify what this is, because it's not valid ES6 code. Also,
"bound" and "unbound" in what sense? In `buz`, the `this` object will be
the instance of Foo from which it's called.

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151110/10ae4ca7/attachment.html>


More information about the es-discuss mailing list