Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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; '(of': 0.07; 'macros': 0.07; 'python': 0.07; '>>>': 0.12; 'discussions': 0.12; 'syntax': 0.12; 'contribute': 0.14; 'am,': 0.14; 'wrote:': 0.14; 'constructs': 0.16; 'expr': 0.16; 'lisp': 0.16; 'pause': 0.16; 'things)': 0.16; 'to:addr:iki.fi': 0.16; 'heavily': 0.16; 'opinion': 0.16; 'stack': 0.16; 'url:blog': 0.18; 'discussions.': 0.19; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'language': 0.20; 'maybe': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'expense': 0.23; 'received:209.85.212': 0.25; 'subject: -- ': 0.25; "i'm": 0.26; 'skip:[ 10': 0.26; 'regardless': 0.26; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; 'list': 0.30; 'cc:addr:python.org': 0.31; 'for,': 0.31; 'does': 0.31; 'language.': 0.31; 'anyone': 0.31; 'done': 0.32; 'idea': 0.32; "i've": 0.33; 'example,': 0.33; 'propose': 0.33; 'someone': 0.33; 'fairly': 0.33; 'sometimes': 0.33; 'there': 0.35; 'usually': 0.36; 'feature': 0.36; 'think': 0.36; 'some': 0.37; 'received:209.85': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'end': 0.39; 'comments': 0.39; 'could': 0.39; 'received:209': 0.39; 'add': 0.39; 'requests': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'simple': 0.60; 'carefully': 0.60; 'managing': 0.61; 'video': 0.61; 'professional': 0.61; '2011': 0.62; 'skip:2 20': 0.68; 'paper': 0.68; 'have.': 0.73; 'news': 0.77; 'coherent': 0.84; 'delusion': 0.84; 'designers,': 0.84; 'times]': 0.84; 'valid,': 0.84; 'absolutely': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Or2Kj4ALgHByVP7GtoZ7IeuZSfJQhTC7eEUKS8p1ZTI=; b=Vp8hjc3HIQjwNrsJWj3vfO6j6Pf7NjD8z4ISsjcb0rTaZKWFKMGitBKUqREA4eX94U 8MktZReAIO9h7BU3Jud523jJONoEqHB933Zb8Psmdupk2i+RpWorwvTMYaHDbv5g4SA8 Iy7TJ0k0Hh9mHDmPb/UnjWs69Jt1dEgOK/fkE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=KoUCwtrrisCArIWFh4LkV2AINunQXS65Ay9M2hqbtVpQ4un13E7HphTb3yWmk7W6DI u3GM4zYYTPUBDNfZsb3MsQ9lxN0FrcgdA8YeX6lOrciiUsD2byDyh9biJFGX98SjMGnu PwiH6A9xe1KFWyEu6Sy9Erfz3U4UK2qM/eT4k= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <87k4eze4dl.fsf@mithlond.arda> References: <8abff237-5ccd-4eb6-85c8-cdc9e87520b7@bl1g2000vbb.googlegroups.com> <87k4eze4dl.fsf@mithlond.arda> Date: Tue, 12 Apr 2011 13:26:48 -0700 X-Google-Sender-Auth: EDpFruU0yBFE9hzdviNL9Gj9_CU Subject: Re: Feature suggestion -- return if true From: Chris Rebert To: Teemu Likonen Content-Type: text/plain; charset=UTF-8 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: 47 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302640011 news.xs4all.nl 41102 [::ffff:82.94.164.166]:44958 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3087 On Tue, Apr 12, 2011 at 11:00 AM, Teemu Likonen wrote: > * 2011-04-12T10:27:55+10:00 * James Mills wrote: >> On Tue, Apr 12, 2011 at 9:17 AM, zildjohn01 wrote= : >>> This is an idea I've had bouncing around in my head for a long time >>> now. I propose the following syntax: >> >> Maybe this is more appropriare for the python-ideas list ? >> >>> =C2=A0 =C2=A0return? expr >> >> This syntax does not fit well within python ideology. > > 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. I think Ben "Yahtzee" Croshaw's comments on open-world sandbox video games (of all things) have a lot of applicability to why allowing full-on macros can be a bad idea. Paraphrasing liberally from his review of Far Cry 2: "Letting the [programmer] create their own [language constructs is] always done at the expense of proper [orthogonality, elegance, and coherence]. Maybe sometimes I don't want to create my own [programming language] experience. Maybe I want to have an experience that's been carefully crafted by professional [language] designers and [architects]. But [a] delusion has arisen that absolutely anyone can contribute something valid, regardless of qualifications. In TV news for example, you'll often see them pause to hear the opinion of a seventy-five-year-old housebound racist from Lemington. And now you get [languages] like [Lisp] that rely heavily on user-made [language constructs]. Which I prophesise doom for, because most people are not [language] designers, and you're just going to end up with oceans of slurry, as indeed we have. It's like giving someone a stack of paper and a [pen] and claiming that that's as good as the latest [New York Times] bestseller." IOW, a language is usually better for having such discussions and having a fairly coherent worldview enforced by the existence of a managing authority. Cheers, Chris -- http://blog.rebertia.com