On Wednesday, 19 March 2014 at 10:41:59 UTC, bearophile wrote:
Kagamin:
Don't even think, ranges are not better.

I am thinking about syntax sugar that the compiler uses to create a input/forward range similar to this:

http://forum.dlang.org/post/[email protected]

There is, however, a fundamental difference between ranges and opApply: Ranges use external iteration, whereas in opApply, it is the collection object that controls how iteration is performed. Features like transparent parallelization in std.parallelism would not be possible without this.

David

Reply via email to