Generator Arrow Functions

Irakli Gozalishvili rfobic at gmail.com
Wed Nov 20 03:33:29 PST 2013


Oh I must have missed that, never mind then thanks Axel for pointing out.  


Regards
--
Irakli Gozalishvili
Web: http://www.jeditoolkit.com/


On Wednesday, 2013-11-20 at 03:22 , Axel Rauschmayer wrote:

> > +1 on arrowed generators! Have being actively using generators last month & have being wishing they could be like arrows, although syntax I've being thinking of was  
> >  
> > (x, y) *> { .... }
> >  
> > BTW given that generators are used as a method on iterators wouldn't it make sense to consider syntax for generator members in a classes syntax ??
>  
> It’s already in the spec: https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-function-definitions
> > My hope is in ES6 we would just use class syntax for methods & arros for functions making "function" a legacy
>  
> My hope, too.
> --  
> Dr. Axel Rauschmayer
> axel at rauschma.de (mailto:axel at rauschma.de)
>  
> home: rauschma.de (http://rauschma.de/)twitter: twitter.com/rauschma (http://twitter.com/rauschma)
> blog: 2ality.com (http://2ality.com/)
>  
>  
>  
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20131120/75c1bb79/attachment-0001.html>


More information about the es-discuss mailing list