[squeak-dev] Collections/Streams | About enumerating a sequence up to a matching query ...

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Mar 11 10:10:28 UTC 2021


But this description is not even consistent with the idea of your #collect:selecting:stopBefore:, is it? Or should this method indeed always select at least one element?


Reminds me of the difference between "while...do" and "do...until" loops. :-)


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Jaromir Matas <m at jaromir.net>
Gesendet: Donnerstag, 11. März 2021 10:58:59
An: squeak-dev at lists.squeakfoundation.org
Betreff: Re: [squeak-dev] Collections/Streams | About enumerating a sequence up to a matching query ...

I know what you mean Christoph but I personally prefer to see the main,
substantial action first and the infrequent event/stop condition last. It's
like: "Go this way and do that until your reach a stop sign" ;)



-----
^[^ Jaromir
--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210311/e08ad2c0/attachment-0001.html>


More information about the Squeak-dev mailing list