Miscellaneous iterator/generator stuff
# Brendan Eich (19 years ago)
On Jun 13, 2006, at 6:17 PM, Jeff Walden wrote:
Typo: the intro paragraph on <developer.mozilla.org/es4 proposals/iterators_and_generators.html> contains a link to PEP 324
which should really be to PEP 342.
Typo fixed, thanks.
Python equates |yield| with no value with |yield None|; the analog
here would be |yield| with no value being equivalent to |yield
undefined|. The iterator/generator page, its corresponding
discussion, and the ES4 grammar do not include |yield|. Is this an
oversight?
Yes. The proposal is incomplete (I'm on vacation but I'll fix it as
soon as I can). The ES4 grammar does not include many proposals'
syntax yet, but it will.
Typo: the intro paragraph on developer.mozilla.org/es4/proposals/iterators_and_generators.html contains a link to PEP 324 which should really be to PEP 342.
Python equates |yield| with no value with |yield None|; the analog here would be |yield| with no value being equivalent to |yield undefined|. The iterator/generator page, its corresponding discussion, and the ES4 grammar do not include |yield|. Is this an oversight? Incidentally, see also bugzilla.mozilla.org/show_bug.cgi?id=326466#c78 and bugzilla.mozilla.org/show_bug.cgi?id=326466#c79 in Mozilla-land, where I believe |yield;| has been implemented.