[squeak-dev] #doWhileTrue: (was: The Trunk: System-nice.1149.mcz)
smalltalker2 at mac.com
Tue Mar 31 08:41:23 UTC 2020
For encrypted mail use jgpfersich at protonmail.com - Free account at ProtonMail.com
Web: https://objectnets.net and https://objectnets.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 Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: QVC: Question Valid Command
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev