3 ms·
Python yield actually supports coroutines with bidirectional communication, not just unidirectional iterators; while not as full featured as callcc, these cover
by dragonwriter 8y ago
Python yield actually supports coroutines with bidirectional communication, not just unidirectional iterators; while not as full featured as callcc, these cover quite a lot of the use cases.
- billsix 8y agoAgreed regarding use cases. My scheme implementation does both yield and send, cleanly imho, because of call/cc.