
3 Jun
2005
3 Jun
'05
1:47 a.m.
Maksym Motornyy wrote:
Hi all,
As of version 2.0 C# will have yield statement. It intended for simplifying iterator development. Yield suspends execution of iterator code and resumes it on next increment. Thus complex traversal iterators are much easier to write in natural loop-like form instead of unroll them.
Nicely stolen from Python <g>.