Yuichi Nishiwaki (2013-08-31T21:12:58.000Z)
domenic at domenicdenicola.com (2013-09-08T00:56:01.437Z)
I get the point. Indeed. Modes are a kind of magic... Regarding the secondary reason: I don't understand the "difference" well, could you explain in detail? You know, all other languages that are dynamically typed and have generators, such as python, lua, and even JavaScript 1.8 don't distinguish two kinds of the functions. I guess this directly means that there isn't something different as you said (because they all have more or less made successful). And in my personal view, yield is something that can be generalized together with return, like - return: discards the succeeding partial continuation there - yield: preserve the succeeding partial continuation there It is very clear in a sense, I believe. So my guess is that the strangeness yields have is a mater of getting used to, and that it is much more natural to treat two of them as a same thing.