Wesner digs into iterators in his new blog post. Its fascinating stuff and a lot to chew on. Its not clear to me though, in what way is his iterator-based chess game example better than code like the bit below?
public class Game
{
public static void Main()
{
bool gameOver = false;
while (! gameOver)
{
gameOver = DoWhiteMove();
if (! gameOver) gameOver = DoBlackMove();
}
}
}
(sorry about lack of proper formatting).