[squeak-dev] #doWhileTrue: (was: The Trunk: System-nice.1149.mcz)

John Pfersich smalltalker2 at mac.com
Tue Mar 31 08:41:23 UTC 2020


+100

/—————————————————————/
For encrypted mail use jgpfersich at protonmail.com - Free account at ProtonMail.com
Web: https://objectnets.net and https://objectnets.org
https://datascilv.com https://datascilv.org


> On Mar 30, 2020, at 15:39, tim Rowledge <tim at rowledge.org> wrote:
> 
> 
> 
>> On 2020-03-30, at 2:23 PM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
>> 
>> idiomatic: using, containing, or denoting expressions that are natural to a native speaker. 
>> So whileTrue: is natural for a native Smalltalker
> 
> Exactly. And as a native speaker of Smalltalk I find doWhileTrue: unspeakably ugly.
> 
> [this doThat ] doWhileTrue:[ thing farkle]
> 
> I mean, just look at it. Which block is the one being tested for the boolean? Are we saying this doThat gets excuted while thing farkle returns true? Or while this doThat  returns true we keep executing think farkle?
> 
> [this doThat ] whileTrueDo:[ thing farkle]
> 
> ... is at least bearable but seriously, why do we need anything other than whileTrue: here?
> 
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: QVC: Question Valid Command
> 
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200331/ec4ded01/attachment.html>


More information about the Squeak-dev mailing list