Ranges seem awkward to work with

Moritz Maxeiner via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 11 18:46:52 PDT 2017


On Tuesday, 12 September 2017 at 01:13:29 UTC, Hasen Judy wrote:
> Is this is a common beginner issue? I remember using an earlier 
> version of D some long time ago and I don't remember seeing 
> this concept.
>

D's ranges can take getting used to, so if you haven't already, 
these two articles are worth the read to get familiar with them 
imho [1][2].
One way to look at it is that input ranges (empty,front,popFront) 
model iteration of the elements of some data source (another is 
that they model a monotonic advancing data source).

[1] 
http://www.drdobbs.com/architecture-and-design/component-programming-in-d/240008321
[2] https://wiki.dlang.org/Component_programming_with_ranges


More information about the Digitalmars-d-learn mailing list