Ruby's yield feature in relation to computer science

前端 未结 4 639
夕颜
夕颜 2020-12-02 07:58

I recently discovered Ruby\'s blocks and yielding features, and I was wondering: where does this fit in terms of computer science theory? Is it a functional programming tech

4条回答
  •  长情又很酷
    2020-12-02 08:07

    I think 'coroutine' is the keyword you're looking for.

    E.g. http://en.wikipedia.org/wiki/Yield

    Yield in computing and information science:

    • in computer science, a point of return (and re-entry) of a coroutine

提交回复
热议问题