Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.057 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.02; 'subject:PEP': 0.07; 'exit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "'break'": 0.16; '(note:': 0.16; '>on': 0.16; 'iteration': 0.16; 'message- id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; 'url:home': 0.24; 'mon,': 0.24; 'possibly': 0.26; 'header:X -Complaints-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; '25,': 0.31; 'continues': 0.31; 'languages': 0.32; 'earth': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; 'should': 0.36; 'being': 0.38; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'subject:? ': 0.60; 'break': 0.61; 'granted': 0.65; 'capable': 0.67; 'subject:this': 0.83; 'goto': 0.84; 'redirecting': 0.84; 'rusi': 0.91; 'whereas': 0.91; 'why?': 0.91; 'taught': 0.96; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Is this PEP-able? fwhile Date: Tue, 25 Jun 2013 20:40:22 -0400 Organization: IISS Elusive Unicorn References: <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <8f813b85-9a4e-4612-82b1-dd58f9bfd497@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-27-81.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1372207232 news.xs4all.nl 15984 [2001:888:2000:d::a6]:44271 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:49217 On Mon, 24 Jun 2013 19:01:11 -0700 (PDT), rusi declaimed the following: >On Tuesday, June 25, 2013 3:08:57 AM UTC+5:30, Chris Angelico wrote: >> On Tue, Jun 25, 2013 at 5:52 AM, <> wrote: >> >> > (NOTE: Many people are being taught to avoid 'break' and 'continue' at all >> > costs... >> >> Why? Why on earth should break/continue be avoided? > >Because breaks and continues are just goto-in-disguise? > Because GOTO is a wild-card, capable of redirecting to anywhere; whereas break can only go to the exit of the loop (and in languages with labeled loops, possibly the exit of an outermost loop -- cf: Ada), and continue can only go to the next iteration of the loop (hmmm, does any language have a continue that can go to the next iteration of an outer loop?) Granted -- allowing /multiple/ break/continue begins to look ugly. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/