On Wed, 22 Apr 2015 18:32:55 +0000, Jesse Phillips wrote:

> On Wednesday, 22 April 2015 at 05:31:03 UTC, ketmar wrote:
>> many algorithms in std.algo doesn't copy if you'll use `(ref a)`
>> labmdas.
> 
> I understand that, but the compiler won't complain "hey that isn't valid
> for all input ranges!" when it sees that someone copied front.

yes, that's why introducing new trait is better. i was trying to minify 
support burden with changes to `isInputRange`, yet it seems to bring more 
problems that it is intended to solve, and i was wrong.

but i still believe that allowing "proxying algos" work on such 
"restriced" ranges is a viable addition. think about `Unique`, for 
example, as Peter noted in bugzilla.

Attachment: signature.asc
Description: PGP signature

Reply via email to