[Tutor] (no subject)

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Jul 21 04:14:42 CEST 2014


On 21/07/2014 03:05, Marc Tompkins wrote:
> On Sun, Jul 20, 2014 at 6:12 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
>
>>> Ah.  I missed that, as I've only noticed this newer thread.  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 :)
>
> So does GOTO.

What is the problem with GOTO?  GOTO is used extremely effectively 
throughout the Python C source code.  I've yet to hear of anybody say 
never use it.

>
> 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
> ?
>
> Granted, this can all be clarified with good comments - but the second
> approach basically documents itself.
>

So what, to me this is a trivial issue compared to many other problems 
that can easily be solved in Python that can only be solved in other 
languages by jumping through hoops, with the Factory pattern springing 
instantly to my mind.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com




More information about the Tutor mailing list