[squeak-dev] The Inbox: Collections-mt.832.mcz

Chris Cunningham cunningham.cb at gmail.com
Fri May 10 15:46:09 UTC 2019


On Fri, May 10, 2019 at 5:53 AM Marcel Taeumel <marcel.taeumel at hpi.de>
wrote:

> So, there are two questions:
>
> 1) Name it #take: or #any: or #slice:?
> 2) Signal an Error (or Notification) if there are not enough elements in
> the collection or just compensate (less elements or duplicate elements)?
>

I think the point of the original commit was to NOT signal an Error if
there weren't enough elements - otherwise #first: would have worked
(mostly).  The idea is "I want 4, or whatever you have if you don't have
that many".
-cbc

>
> Best,
> Marcel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190510/3d6c85d4/attachment.html>


More information about the Squeak-dev mailing list