32 ms·
>The idea that the code flow is now no longer linear, and that the programmer now has to understand perfectly the odd rules by which the execution of code now j
by TazeTSchnitzel 14y ago
>The idea that the code flow is now no longer linear, and that the programmer now has to understand perfectly the odd rules by which the execution of code now just jumps around… boggles the mind.
They aren't odd rules. It's just a coroutine. It executes, yields a value to the calling function and yields back control, the calling function does stuff, and yields back control, and this repeats. It's quite simple.
Also, don't argue against it here. Argue with the Python and C# folks, they did it first.