Good points on why an explicit range distinction is desired; I
probably should have looked harder at how std.container worked.
I'm also probably spoiled/unlearning from C#'s IEnumerable<T>
syntactic sugar (foreach over enumerator, LINQ) which handles
most of these considerations for you. You could say it encourages
conflating the container with the iteration mechanism (range in
D, enumerator in C#). I see the distinction now but old habits
die hard, I guess. :)
- Re: Alias this with array can only be used once Simen Kjærås
- Re: Alias this with array can only be used once Jonathan M Davis
- Re: Alias this with array can only be used once Ali Çehreli
- Re: Alias this with array can only be used once Jonathan M Davis
- Re: Alias this with array can only be used once Blake Anderton
- Re: Alias this with array can only be used once Jonathan M Davis
- Re: Alias this with array can only be used once Ali Çehreli
- Re: Alias this with array can only be used once Jonathan M Davis
- Re: Alias this with array can only be used once Ali Çehreli
- Re: Alias this with array can only be used o... Jonathan M Davis
- Re: Alias this with array can only be used o... Blake Anderton