edubart/minicoro

Symmetric coroutines?

ib00 opened this issue · 2 comments

ib00 commented

Any plans to support symmetric coroutines?

Why? The two models actually have the same expressive power; i.e. asymmetric coroutines can be implemented using symmetric coroutines and vice versa. Providing both constructs only complicates the semantics of the coroutine mechanism, with no increase in its expressive power.

No plans, the library goal is to provide only Lua like coroutines, which are asymmetric. Also as mentioned, asymmetric coroutines are powerful enough to express symmetric coroutines.