Bound instance-function vending (was RE: Arrow binding)

Brendan Eich brendan at
Sun Apr 29 13:52:30 PDT 2012

Axel Rauschmayer wrote:
> Use case: error checks. For example: forEach could complain if it got 
> both an arrow function and a thisValue.

Do you mean error, or warning?

Because you can use forEach with a function that ignores its |this|, and 
pass the thisValue optional parameter too, without error today. I see no 
good coming from trying to add an arrow-only error in the future when 
this case is not an error.


More information about the es-discuss mailing list