container stuff
Michel Fortin
michel.fortin at michelf.com
Wed May 26 19:29:37 PDT 2010
On 2010-05-26 20:09:15 -0400, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> said:
> On 05/26/2010 06:07 PM, Jonathan M Davis wrote:
>> Looks interesting overall. There is one function, however, which makes no
>> sense to me: removeElement()/stableRemoveElement().
>>
>> [...]
>
> If the container is a worklist with items to work on, it sometimes
> doesn't matter in which order you extract them.
May I suggest naming it "removeAny"? This fits better with "removeBack"
and "removeFront" (where the second word represent the position), and
makes clear that you don't really care which element is removed.
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list