Generator Arrow Functions

Brandon Benvie bbenvie at mozilla.com
Fri Nov 15 07:48:38 PST 2013



On Nov 15, 2013, at 5:54 AM, Domenic Denicola <domenic at domenicdenicola.com> wrote:

>> On 15 Nov 2013, at 08:47, "Kevin Smith" <zenparsing at gmail.com> wrote:
>> 
>> From the examples I've seen so far in this discussion, it's likely that what is wanted isn't generator arrows, as much as syntactic support for asyc functions.  Such a function, would, among other things, insure that all exceptions are converted to rejections, even exceptions occurring "in the head" (as can occur with argument destructuring and default parameter evaluation).
> 
> +1. Although, the outer-this-capturing nature of arrow functions would probably be nice for some async functions too.

It would be great to have await, but in the meantime having generator functions would help male async methods tolerable. Await is ES7 at the earliest, generator arrow functions could be in ES6.


More information about the es-discuss mailing list