Generator Arrow Functions

Axel Rauschmayer axel at rauschma.de
Tue Nov 12 18:30:28 PST 2013


This is relevant, too: http://esdiscuss.org/topic/function-declarations-with-lexical-this

I’d still argue that generator arrow functions make more sense than generator function declarations.

Axel

On 13 Nov 2013, at 10:13 , Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:

> Everybody should probably review esdiscuss.org/topic/why-do-generator-expressions-return-generators where we discussed this before.  
> 
> It wasn't that there was necessarily anything bad about them, but there also didn't seem to be a strong enough case made in that thread to justify the work necessary to add them at this late data.
> 
> As you mention, there are issues with arrow functions not being constructors, although it probably could be dealt with similarly to how generator comprehensions are handled (generator comprehensions are essentially treated in the spec. as a special form of generator function). 
> 
> I also need to think a bit about whether there might be any this binding issues.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131113/2e9a01ca/attachment.html>


More information about the es-discuss mailing list