'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
>>> returns.
>>>
>>
>> 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.
>
>
> /be
> ______________________________**_________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/**listinfo/es-discuss<https://mail.mozilla.org/listinfo/es-discuss>
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130831/c7590de2/attachment.html>


More information about the es-discuss mailing list