Concise Method Binding

Isiah Meadows isiahmeadows at gmail.com
Tue Nov 10 23:59:38 UTC 2015


It's using an ES7 proposal, and it's a method bound to the instance.

On Tue, Nov 10, 2015, 18:58 Rick Waldron <waldron.rick at gmail.com> wrote:

> 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
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151110/e37e2b02/attachment.html>


More information about the es-discuss mailing list