Rust switches to external iteration

Peter Alexander peter.alexander.au at gmail.com
Thu Jul 4 11:23:01 PDT 2013


On Thursday, 4 July 2013 at 18:06:51 UTC, Jonathan M Davis wrote:
> On Thursday, July 04, 2013 19:28:29 w0rp wrote:
>> I see yield as a tool only for when you only want to create 
>> input
>> ranges easily. There is a definite value in the other range
>> types, but yield is useful for when you just want to produce an
>> input range quickly.
>
> And given how useless pure input ranges are, I really don't see 
> much value in
> that. About all they give you is the ability to iterate over a 
> set of values
> once. The other range types are _far_ more powerful, and pure 
> input ranges
> should be avoided as much as possible IMHO.
>
> - Jonathan M Davis

To be fair, most of the time all you want to do is iterate over 
the range, so while they aren't powerful, they are sufficient 
most of the time.


More information about the Digitalmars-d mailing list