That First Next Argument

Kevin Smith zenparsing at
Thu Aug 21 09:46:33 PDT 2014

> I've been thinking about ways to explicitly place the initial yield.  One
> ideal is a reserved keyword sequence starting with 'yield`, such as `yield
> continue` to mark the initial yield point. If a generator function does not
> contain an explicit `yield continue`, then it is implicit at the start of
> the function body.

So when the generator function is executed (and before next has been
called), it will run until the `yield continue` (or somesuch), instead of
stopping at the start of the function body?

That would be great, actually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list