2 ms·
Can you expand on this? What's a trivial exmaple? Doesn't it depend on how the iterations are compiled? Seeing how e.g. a normal continuation is compiled in C#
by alkonaut 8y ago
Can you expand on this? What's a trivial exmaple?
Doesn't it depend on how the iterations are compiled? Seeing how e.g. a normal continuation is compiled in C#.
foreach(var thing in Things)
{
if (thing.IsAlive)
yield return thing;
}
Those will compose (At least I think they will compose in the sense you mean) because they are alrerady sugar for a state machine and not a simple iteration. The for-loop construct didn't imply "loop here until done" in the sense that doesn't compose.