Not the last breakage (Was: TLBB: The Last Big Breakage)

David Nadlinger code at klickverbot.at
Wed Mar 19 07:46:11 PDT 2014


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/awabysprjjnrxrhgqyee@forum.dlang.org

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


More information about the Digitalmars-d mailing list