« Default Values in ASP.NET MVC Action Parameters | Main | Enterprise Library 5 ConfigurationSourceBuilder and Fluent Interfaces - DAAB Example »

02/08/2010

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Andrey

why not use .Top instead of a loop for getting first 200 odd integers?

David Hayden

Excellent point. In real code, that is exactly what you would do as it focuses more on the intention ( what ) rather than the how. I was thinking about that, but I am not so sure that really pushes home the point of the use of iterators and delayed execution as much as the loop.

Nonetheless, I still should have mentioned .Take as you bring up an excellent point. I will add that to the post. Thanks for the comment!

The comments to this entry are closed.