Re: [Tutor] Ending a loop with a condition not at the top

2014-07-20 Thread Marc Tompkins
On Sun, Jul 20, 2014 at 8:10 PM, Ben Finney wrote: > Marc Tompkins writes: > >> Seriously, though, how is >> 1) Do {this} forever, until something happens that I'll tell you about >> later >> >> better than >> 2) Do {this} until this condition, which I'm telling you about RIGHT >> NOW, changes >

Re: [Tutor] Ending a loop with a condition not at the top

2014-07-20 Thread Ben Finney
Marc Tompkins writes: > Seriously, though, how is > 1) Do {this} forever, until something happens that I'll tell you about > later > > better than > 2) Do {this} until this condition, which I'm telling you about RIGHT > NOW, changes > ? Here's how: The first of them is already implemented in P

[Tutor] Ending a loop with a condition not at the top

2014-07-20 Thread Ben Finney
Marc Tompkins writes: > And I apologize for imputing motive (a liking for "while True"); I'd > just noticed that you often advise it. I don't know who _does_ think > this is a desirable pattern; I'd love to hear their argument for it - > it must be really good. It works better than alternatives