I just saw on the Async CTP website that the next version of VB.NET will have iterators. I guess they included iterators because the rewriting process is similar to the one used for the new async
/await
feature.
But reading the document that explains the feature, I realized that VB.NET iterators will actually have features that are not available in C# today, namely:
- iterator blocks in a try/catch block
- anonymous iterator blocks
These were known limitations in C#. Is there any chance that these limitations will be removed in C# 5 ? If not, is there any reason why it can be done in VB.NET and not in C# ?