Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'guido': 0.04; 'rejected': 0.04; 'macros': 0.07; 'pep': 0.07; 'kelly': 0.09; 'url:msdn': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'lisp': 0.16; 'to:addr:iki.fi': 0.16; 'url:archive': 0.16; 'discussions.': 0.19; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'subject: -- ': 0.25; "i'm": 0.26; 'message-id:@mail.gmail.com': 0.28; 'sorry,': 0.29; 'cc:addr:python.org': 0.31; 'language.': 0.31; 'there': 0.35; 'suggested': 0.35; 'feature': 0.36; 'some': 0.37; 'should': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'could': 0.39; 'add': 0.39; 'requests': 0.40; 'header:Received:5': 0.40; 'simple': 0.60; '2011': 0.62; 'favor': 0.64; 'url:b': 0.65; 'received:74.125.83': 0.69; '12:25': 0.84; 'url:2005': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=f8nOD/vrfqsSuHjSlUAE85o8XseNpfMEuFKVjFp7eEk=; b=vVWm54WoWArqR/RGsSJeZ6MwnVLC7CrvlGe9dLlIf3OekDiBg29Zc9gyQXKEjen+Pj Q5n0HE9tbHLgfaH+bZw9cI56AItVdd8A0/VJNEPOopXiwQCF9rkHk94cV9pLNe29QRoJ pGBKi5HVDDjBXEPWOow9cCdm36XkdxgLpJNlQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=FQyKfDv1aPXrq0a66AXLigIiLKZG4DSLuouOElkI0jD13oK0RgUhaPNMpRSwsp8Muf BsZAaZd+CG10V37EisiHuDNDvKyhKIfb66UVh3Dtzgn7sgqFrIwWpNUNmG/jQke3GY4F hyzu6K0mshI9xPaoVmrDAPYuUjfGPbJky3EZM= MIME-Version: 1.0 In-Reply-To: References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> <87k4eze4dl.fsf@mithlond.arda> From: Ian Kelly Date: Tue, 12 Apr 2011 12:29:41 -0600 Subject: Re: Feature suggestion -- return if true To: Teemu Likonen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 19 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302633020 news.xs4all.nl 81481 [::ffff:82.94.164.166]:55680 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3074 On Tue, Apr 12, 2011 at 12:25 PM, Ian Kelly wrote: > On Tue, Apr 12, 2011 at 12:00 PM, Teemu Likonen wrote: >> I'm a simple Lisp guy who wonders if it is be possible to add some kind >> of macros to the language. Then features like this could be added by >> anybody. Lisp people do this all the time and there is no need for >> feature requests or any discussions. >> >> =A0 =A0(with-returns >> =A0 =A0 =A0 ;; some code >> =A0 =A0 =A0 (return-if foo) >> =A0 =A0 =A0 ;; more code >> =A0 =A0 =A0 (return-if bar)) > > Flow-control macros were suggested as part of PEP 343, but they were > rejected by Guido based on this rant: > > http://blogs.msdn.com/b/oldnewthing/archive/2005/01/06/347666.aspx Sorry, that should have been PEP 340, which was rejected in favor of 343.