Proposal: takeFront and takeBack

Roman D. Boiko rb at d-coding.com
Wed Jul 4 01:32:37 PDT 2012


On Wednesday, 4 July 2012 at 08:14:54 UTC, Jonathan M Davis wrote:
> On Wednesday, July 04, 2012 09:55:57 Roman D. Boiko wrote:
>> Still would be nice to get your (or community) feedback on my
>> previous proposals to localize custom logic inside ranges which
>> invalidate value returned from front.
>
> It sounds messy and error-prone, to be honest. And any range 
> that needed to
> implement it and didn't would be broken.

It would be broken only in cases when consumeFront is used, and 
that would likely be easily detectable. Still I don't have any 
idea how many such ranges exist.

But overall I agree.


More information about the Digitalmars-d mailing list