3 ms·
There is a 1:1 correspondence between a generator/coroutine and an iterator with internal state. I suggest looking at the PHP generator RFC[1] and Concurrency f
by supriyo-biswas 3y ago
There is a 1:1 correspondence between a generator/coroutine and an iterator with internal state. I suggest looking at the PHP generator RFC[1] and Concurrency from the Ground Up[2] talk.
[1] https://wiki.php.net/rfc/generators https://wiki.php.net/rfc/generators
[2] https://m.youtube.com/watch?v=MCs5OvhV9S4 https://m.youtube.com/watch?v=MCs5OvhV9S4
- kitd 3y agoIndeed. The fundamental concept is "Algebraic Effects" https://stackoverflow.com/questions/49626714/what-does-algebraic-effects-mean-in-fp https://stackoverflow.com/questions/49626714/what-does-algeb...