Proposal: takeFront and takeBack

monarch_dodra monarch_dodra at gmail.com
Wed Jul 4 01:13:21 PDT 2012


On Wednesday, 4 July 2012 at 08:12:46 UTC, Jonathan M Davis wrote:
> On Wednesday, July 04, 2012 09:58:09 Roman D. Boiko wrote:
>> On Wednesday, 4 July 2012 at 07:53:32 UTC, Roman D. Boiko 
>> wrote:
>> > On Wednesday, 4 July 2012 at 07:40:55 UTC, monarch_dodra 
>> > wrote:
>> >> I'll propose "spendFront", which is pretty much the same
>> >> thing, but is less loaded. I'm not entirely sure if it 
>> >> carries
>> >> the meaning as well? I think it is a worth discussion.
>> > 
>> > I'm not a native speaker, but I feel that "spend" would be a
>> > wrong choice.
>> > 
>> > fetchFront was proposed by Dmitry, which I like more than
>> > spendFront, but slightly less than consumeFront.
>> 
>> Another option might be "readFront". That's somewhere in the
>> middle amond "take", "consume" and "fetch"...
>
> Read does not imply that the element is removed from the range. 
> Nor does
> fetch. Consume does.
>
> - Jonathan M Davis

Yeah... Consume is probably the best choice.



More information about the Digitalmars-d mailing list