Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'duplicate': 0.07; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'function?': 0.16; 'happily': 0.16; 'iteration': 0.16; 'looping': 0.16; 'loops': 0.16; 'subject:unicode': 0.16; 'write,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'purposes': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'label': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'break;': 0.31; 'factor': 0.31; 'implemented': 0.33; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'really': 0.36; 'scheme': 0.36; 'done': 0.36; 'should': 0.36; 'wrong': 0.37; 'does': 0.39; 'how': 0.40; 'information': 0.63; 'name': 0.63; 'become': 0.64; 'body.': 0.68; 'felt': 0.74; 'obvious': 0.74; 'to:none': 0.92 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:cc :content-type; bh=Uu0VFFx4UUKPMuZt9MD/lK0ftLZOS41Cr/vekSEXOY0=; b=xED5LBdiZ1DrvN5ICHcqzvI/FDXG/xsQIHVAWEZQcfeOmFeOpPHkaemXqcbCsS8CDw DgKLhAd2vL3kzDogembjrTkiMeHE0h5LYUW4G0QcbZpBflZ+rLgCX98YPYYcoys4tZae Tsz9bRVXqYqnZaMtoc8VCmprvp8Z6kwjoY7+XqguoXPnmzhLapgceyVBtZnsPu2p+x69 ERiQl1+zVK6RiJYh6tzai1bv1rVWjeRW4O1hDo9W3+3zV8/3ZYpSDXLYeAr0+7hVMKUG d3PHV4yPMXcOOSOVRNWaF7gpV75lZ23JO8D3V1gIP6WS3DkSYxd6NRUJkvrLn3yu7EPq j8pQ== MIME-Version: 1.0 X-Received: by 10.69.25.69 with SMTP id io5mr31930949pbd.22.1396359174265; Tue, 01 Apr 2014 06:32:54 -0700 (PDT) In-Reply-To: <87eh1htcjg.fsf@elektro.pacujo.net> References: <5331D902.3030902@gmail.com> <53321819$0$29994$c3e8da3$5496439d@news.astraweb.com> <53393BA4.2080305@rece.vub.ac.be> <5339C281.7080300@rece.vub.ac.be> <533A768F.5080102@rece.vub.ac.be> <87txadtmwq.fsf@elektro.pacujo.net> <87ob0ltfze.fsf@elektro.pacujo.net> <87eh1htcjg.fsf@elektro.pacujo.net> Date: Wed, 2 Apr 2014 00:32:54 +1100 Subject: Re: unicode as valid naming symbols From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 1396359183 news.xs4all.nl 2926 [2001:888:2000:d::a6]:51433 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69512 On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote: > I implemented the loops in the scheme way. Recursion is how iteration is > done by the Believers. Traditional looping structures are available to > scheme, but if you felt the need for them, you might as well program in > Python. Then I'm happily a pagan who uses while loops instead of recursion. Why should every loop become a named function? find_divisor: for ( factor = 2 ; i%factor ; factor++ ) { if ( factor == i ) { printf("%d\n",i); count--; break; } } Does that label add anything? If you really need to put a name to every loop you ever write, there's something wrong with the code; some loops' purposes should be patently obvious by their body. All you do is add duplicate information that might be wrong. ChrisA