Comment

Comment by randomstringxyz

Conceptually, think about it. Coroutines require copying not only the variables but the function itself, outside of the lifetime of the parent function. (Or at least pointers thereto.) I would like to hear about a language with static coroutines but I am not aware of any. Even Rust doesn't do it, they just make you pass the lifetime around.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton