From: matz@... (Yukihiro Matsumoto) Date: 2003-04-27T00:24:53+09:00 Subject: Re: block.call vs. yield Hi, In message "Re: block.call vs. yield" on 03/04/27, dblack@superlink.net writes: |I think that if the semantics of yield are to be generalized, they |should be thought of as something other than the semantics of yield. |It seems to me that the situation is somewhat like this: | | type 1 semantics type 2 semantics | _____________________ ___________________ | | | | | | | | | | | methods Proc#call yield Proc#whatever | |in which case, yield and Proc#whatever share semantics, but there's no |reason (except "historical reasons") to define them as "yield |semantics". Iff you can name it a good name. The name "yield" tells you "how different from #call". This is important. Other names (e.g. invoke) tells you the fact it's different from #call, but not how. But there still be possibility for the better name. matz.