Proposal: takeFront and takeBack

Mehrdad wfunction at hotmail.com
Wed Jul 4 01:16:05 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:
>> On Wednesday, 4 July 2012 at 04:33:14 UTC, Jonathan M Davis 
>> wrote:
>> > If no one has any major objections to this scheme or can
>> > provide a better proposal, I'll create a pull request from 
>> > what
>> > I have.
>> 
>> No objections.
>> 
>> 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.
>
> - Jonathan M Davis

(1) Why/how was it messy/error-prone? Wasn't it doing exactly 
what you want right now?

(2) How would creating an identical method with a different name 
make the situation better?


More information about the Digitalmars-d mailing list