From: Dave Thomas Date: 2000-02-15T03:16:48-06:00 Subject: [ruby-talk:01374] Re: Yield "Conrad Schneiker" writes: > With reference to FAQ 3.3, does anyone else find "yield" to be a somewhat > counter-intuitive term? > > I think that (AFIK) either "invoke" or "callwith" (call with) would be a > better statement name. > > Am I thinking about this the wrong way around or something? Yes ;-) (I think) I think 'yield' is used because of its historical use in coroutines. The relationship between an iterator and its caller is pretty much the same as a coroutine environment (or like those cartoon chipmunks--after you, no after you....) Dave