Queue push/pop

Tony Garnock-Jones tonyg at lshift.net
Thu Jan 5 02:47:24 PST 2006


Brian Rice wrote:
>> The allows the correct intent to be expressed for any given client: 
>> in some
>> cases the intent is to push and pop without any dependency on  order,
>> and in
>> others the order matters.
> 
> Yes, that's what we have already. The "instead of" was really more 
> about me changing how the client called the library. Although I also 
> copied over the Queue push:/pop wrapper methods to the SharedQueue, 
> with the eventual intent of turning that kind of thing into a Mixin  or
> Trait.

Which reminds me of the reason I posted to begin with: that in the
Scheduler at least, using removeFirst/addLast: was capturing the intent
that it should be a round-robin *queue* rather than anything less
specific :-)

Tony




More information about the Slate mailing list