while(true) {
Animate(image);
wait 200;
}
implies there are multiple synchronous execution stacks. It's not threading, as the synchronization points are explicit.Hmmm, I'd have just called it cooperative threading/multitasking then. Or do you think that would be wrong?
Actual coroutines are a lot more flexible and interesting than just cooperative multitasking, though.
Can't you just say something like "I like coroutines more, they are so minimalist and elegant, and yet they are equivalent in power to cooperative multitasking!". I'd actually subscribe to that notion. But not your overblown claims of objective superiority.
* One has to wonder why so many people crave a scheduler, when they already have coroutines? Maybe because having a scheduler makes certain things easier than naked coroutines?
It's not about liking one thing or another more. It's that coroutines are coroutines, and cooperative multitasking is cooperative multitasking. The two are often confused, and all I am saying is that that is incorrect.
Cooperative multitasking can easily be implemented with coroutines, but doesn't have to be. You could implement coroutines with cooperative multitasking but doing so is highly silly and a massive hack.
And both are equally capable is all I'm saying.
Well, I suppose we've come close enough then to move on.