Miscellaneous iterator/generator stuff

Brendan Eich brendan at mozilla.org
Wed Jun 14 16:48:05 PDT 2006


On Jun 13, 2006, at 6:17 PM, Jeff Walden wrote:

> Typo: the intro paragraph on <http://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.

/be



More information about the Es4-discuss mailing list