Possibly better loop construct, also labels+goto important and on the fly compiler idea.

Chris Angelico rosuav at gmail.com
Fri Oct 18 03:44:28 EDT 2013


On Fri, Oct 18, 2013 at 6:40 PM, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 18/10/2013 00:53, Peter Cacioppi wrote:
>>
>> You know, I'd heard somewhere that Goto was considered harmful.... trying
>> to remember exactly where....
>>
>
> Yep, but it's used throughout the CPython code for error handling, nothing
> wrong with that as it's crystal clear that you're going to one place for one
> purpose.  Contrast that with its use in spaghetti code where you're leaping
> around like a naked person on an ant hill.

How bad can it be?

http://xkcd.com/292/

ChrisA



More information about the Python-list mailing list