3 ms·
This short paper [1] has an excellent description of Lua's coroutines, why they're useful, how they compare to continuations, etc. (In short, they are isomorphi
by silentbicycle 15y ago
This short paper [1] has an excellent description of Lua's coroutines, why they're useful, how they compare to continuations, etc. (In short, they are isomorphic to one-shot continuations, but a bit more convenient for many common use cases.) It expands on the paper linked in the post.
1: http://www.inf.puc-rio.br/~roberto/docs/MCC15-04.pdf http://www.inf.puc-rio.br/~roberto/docs/MCC15-04.pdf