ruby 的 Block 调用为什么用 yield 这个单词?
迷茫
迷茫 2017-04-24 09:10:08
0
1
567

ruby 的 Block 调用为什么用 yield 这个单词,这个单词本身的意思没有 invoke 的意思啊?想不明白,苦思好久了,真难受

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(1)
黄舟

Because Block is a coroutine, the term upcall from coroutine is yield.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!