[squeak-dev] #doWhileTrue: (was: The Trunk: System-nice.1149.mcz)
tim at rowledge.org
Mon Mar 30 22:38:52 UTC 2020
> 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
More information about the Squeak-dev