Generators with arrow functions.
brendan at mozilla.org
Tue Sep 23 07:22:20 PDT 2014
Hemanth H.M wrote:
> > It is one proposed syntax for async functions.
> Cool, thanks.
Not sure who wrote the >-cited line -- Jeremy didn't.
> On Tue, Sep 23, 2014 at 7:30 PM, Jeremy Martin <jmar777 at gmail.com
> <mailto:jmar777 at gmail.com>> wrote:
> This has come up a few times. Check out this thread, for example:
Jeremy makes a good point, which would help reduce noise on the list if
everyone grokked it. Check esdiscuss.org (use site:esdiscuss.org search
with keywords) before posting. Several threads lately would have been
avoided by the original poster doing this and finding the answer.
It's sometimes hard to find with a quick search -- you may need to look
around and refine your search. We surely could use a consolidated
rationale document for the many design decisions in ES6. But we have a
resource in esdiscuss.org, which can help cut down on noise.
> On Tue, Sep 23, 2014 at 9:40 AM, Hemanth H.M <hemanth.hm at gmail.com
> <mailto:hemanth.hm at gmail.com>> wrote:
> Is there a mention about it somewhere?
> Something like:
> gen = (x) * => yield x+2;
> I understand that arrow functions are lexically bound and has
> an explicitly return in it's a one liner.
> /'I am what I am because of who we all are'/
> h3manth.com <http://www.h3manth.com>
> /-- Hemanth HM/
> es-discuss mailing list
> es-discuss at mozilla.org <mailto:es-discuss at mozilla.org>
> Jeremy Martin
> 661.312.3853 <tel:661.312.3853>
More information about the es-discuss