On Thursday, 27 February 2014 at 14:46:25 UTC, Alessandro
Stamatto wrote:
Eric Niebler did a very interesting discussion targeting Range
proposals for C++17.
I think it would be great inspiration for future improvements
on D ranges:
The shortcomings of classical C++ (begin, end) ranges:
http://ericniebler.com/2014/02/16/delimited-ranges/
The shortcomings of infinite ranges represented by (begin, end)
ranges: http://ericniebler.com/2014/02/18/infinite-ranges/
Fixing ranges by allowing begin type to be different from end
type, allowing Sentinel Ranges:
http://ericniebler.com/2014/02/21/introducing-iterables/
Making this new Range (called by the author as Iterable)
capable of dealing with infinite ranges:
http://ericniebler.com/2014/02/27/ranges-infinity-and-beyond/
How this discussion touches D ranges design decisions?
Reddit discussions on these are interesting too. Eric talks about
why he doesn't like D's ranges a bit.
http://www.reddit.com/r/cpp/comments/1y60bk/range_concepts_part_1_of_4_delimited_ranges/
http://www.reddit.com/r/cpp/comments/1yc03d/range_concepts_part_2_of_4_infinite_ranges/
http://www.reddit.com/r/cpp/comments/1yk89k/range_concepts_part_3_of_4_introducing_iterables/
http://www.reddit.com/r/cpp/comments/1z37m9/range_concepts_part_4_of_4_to_infinity_and_beyond/
(no comments yet, just posted)