yield; vs yield undefined

Erik Arvidsson erik.arvidsson at gmail.com
Sat Feb 23 09:22:09 PST 2013


Corrently, the wiki page says that "yield" should throw StopIteration
but "yield undefined" yields the value undefined. Is this by design? I
find it a bit strange that it does not follow the "return" analogy
where "return" is short for "return undefined"

-- 
erik


More information about the es-discuss mailing list