On 2012-07-27 02:10, Brad Anderson wrote:
D uses ranges instead of iterators. You can read more about them here: http://ddili.org/ders/d.en/ranges.htmlI find ranges to be a vast improvement over iterators personally (I use iterators extensively in C++ for my job and lament not having ranges regularly).
Note that iterators in .NET and C++ are a bit different. .NET has language support with the "yield" keyword.
-- /Jacob Carlborg