> +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
[email protected]
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss