Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'cpython': 0.05; 'purpose.': 0.07; 'lawrence': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'handling,': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'error': 0.23; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'fri,': 0.33; 'subject:the': 0.34; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'throughout': 0.37; 'wrong': 0.37; 'clear': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'bad': 0.39; 'heard': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; "you're": 0.61; 'goto': 0.84; 'subject:+': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oXZ9IV85woemRshn58YFQbD7IcIvNvBok1sxH+zpyg8=; b=xZhahktMKf/O9F3AXlRj4V+4tIUDd0GIgIwBK0NAomxKmjnGkIjK9WjgKITD1bE/ic UhXYqUS6LdBIAbuKG22hCKp3lWgDJ/1OsaW3VUewl2cxrjnpIitPLnc+I+ZJWxzFUaQb W8jbaChz/MTQWfUIfN7chH0EL1fe4+m/SBzAt4gC57f9QrZqwm1Tb55fD8/JztSKldli lpnbTJZBFQxLtlg5yvlPN5QR0XO0wiyBHN+QT1nOCz/HXPOjzu46GvJkJxom9m4A2uAi wfExDhlrQvYI97C1tJ818jU/QBMnc7GWmGnlN/unUN74BDhPsgv8AzPEC17q2f2JtYLG eTiw== MIME-Version: 1.0 X-Received: by 10.68.96.130 with SMTP id ds2mr1654744pbb.99.1382082268502; Fri, 18 Oct 2013 00:44:28 -0700 (PDT) In-Reply-To: References: <6f2b7$525f2302$5419b3e4$13466@cache1.tilbu1.nb.home.nl> Date: Fri, 18 Oct 2013 18:44:28 +1100 Subject: Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382082277 news.xs4all.nl 15890 [2001:888:2000:d::a6]:57920 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57035 On Fri, Oct 18, 2013 at 6:40 PM, Mark Lawrence 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