'function *' is not mandatory
Mark S. Miller
erights at google.com
Sat Aug 31 17:59:28 PDT 2013
Yes, that is the call I mean as well.
On Sat, Aug 31, 2013 at 5:54 PM, Brendan Eich <brendan at mozilla.com> wrote:
> Brendan Eich wrote:
>> A GeneratorFunction's body is evaluated sometime after its call
>> This is ill-stated. You mean a continuation of a yield in its body is
>> evaluated, not the whole body (re-)evaluated.
>> Of course, there may be no yield, or the yield may not be reached. Yuichi
>> pointed out similarity with return.
> Sorry, now I get to be tough with myself: your "its call" threw me, my
> mistake. I was thinking a call to g.next() given g = gen() for a generator
> named gen. But diagramming the sentence, you mean the call gen(), and your
> statement is well-stated.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss