[squeak-dev] The Trunk: Collections-ct.1012.mcz
Thiede, Christoph
Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Jun 20 17:18:57 UTC 2022
> We already have #atRandom for Collection. Is that not adequate for your needs?
Not really, because non-reproducible (smoke) tests are an anti-pattern. Yes, I could hardcode a random seed, but this is all more complicated than #middle. :D
Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Montag, 20. Juni 2022 18:38:34
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Trunk: Collections-ct.1012.mcz
> On 2022-06-20, at 5:50 AM, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
>
> When I send #middle, I think of #anyOneAboutInTheMiddle. I used this in a few scripts where I wanted to get a sample that is neither from the beginning nor from the end of the collection.
We already have #atRandom for Collection. Is that not adequate for your needs?
tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Dreams are free, but you get soaked on the connect time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220620/5563eda6/attachment-0001.html>
More information about the Squeak-dev
mailing list
|