3 ms·
> For example, you can't inline a non-stackful coroutine that has independent state I'm a huge fan of stackful coroutines (having written multiple variants mys
by gpderetta 10y ago
> For example, you can't inline a non-stackful coroutine that has independent state
I'm a huge fan of stackful coroutines (having written multiple variants myself) and I have been lobbying hard for them. Having said that, stackless coroutines, as long as the next continuation is statically known or knowable, are trivially inlineable (they desugar to the equivalent of a switch statement).