Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'example:': 0.03; 'braces': 0.09; 'structure.': 0.09; 'am,': 0.12; 'argument': 0.15; 'finney': 0.16; 'indent': 0.16; 'language?': 0.16; "\xc2\xa0i'm": 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; '(i.e.': 0.17; 'language': 0.17; 'cheers,': 0.18; 'cc:no real name:2**0': 0.20; 'compared': 0.21; 'stuff': 0.22; 'cc:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'indentation': 0.23; 'received:209.85.213.46': 0.23; 'received:mail-yw0-f46.google.com': 0.23; 'aug': 0.24; 'writes:': 0.25; 'correct': 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'match': 0.30; 'fans': 0.30; 'chris': 0.32; 'cases': 0.32; 'actual': 0.32; 'does': 0.32; 'anyone': 0.32; 'actually': 0.33; "i've": 0.34; 'limitations': 0.34; 'fri,': 0.36; 'question': 0.36; 'comparing': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'why': 0.39; 'case': 0.39; 'where': 0.40; '8bit%:23': 0.62; 'back': 0.62; 'here': 0.65; 'ever': 0.65; 'strange': 0.68; 'encountered': 0.73; 'subject:line': 0.73; 'sender:addr:chris': 0.84; 'url:rebertia': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; 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; bh=ZLl5F3Su+xDzKZXEhazDrzggXp3vscv76wXIPY0IHY4=; b=eQH0MwsbO3IZUD/ge2YTvZ+aKXHU/D5UEsHVMNdRAuyt6IqyHHv8cDM2U/339mVupd WUI4ksa9vJi4nL0TfDLLLPJN0iSrgbzpN62PcmUD3R1fcCgLRwiiFVAiLKo09bQqtZU1 1a2pDd8nDVtqyekVJJ45le80TWgWQMdRil3FA= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <87d3gahq1b.fsf@benfinney.id.au> References: <1312951356.77394.YahooMailNeo@web121518.mail.ne1.yahoo.com> <4e424208$0$29965$c3e8da3$5496439d@news.astraweb.com> <1312981104.89312.YahooMailNeo@web121520.mail.ne1.yahoo.com> <1312982377.95657.YahooMailNeo@web121508.mail.ne1.yahoo.com> <87fwl9hr4r.fsf@benfinney.id.au> <4e43cb2a$0$29986$c3e8da3$5496439d@news.astraweb.com> <87d3gahq1b.fsf@benfinney.id.au> Date: Fri, 12 Aug 2011 10:03:04 -0700 X-Google-Sender-Auth: Shs9eU7GrlEITfi0hEXDexff-R4 Subject: Re: allow line break at operators From: Chris Rebert To: Ben Finney 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: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313168589 news.xs4all.nl 23942 [2001:888:2000:d::a6]:48692 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11287 On Fri, Aug 12, 2011 at 3:39 AM, Ben Finney wr= ote: > Seebs writes: > >> Question for y'all: >> >> Has anyone here ever ACTUALLY encountered a case where braces -- not >> indentation -- did not match intent in a C-like language? =C2=A0I'm talk= ing >> only about cases where braces are *actually present*. > > What a strange limitation. Why are you not comparing apples with apples? > > The correct comparison would be =E2=80=9Cgetting the braces to match the > intended structure=E2=80=9D compared with =E2=80=9Cgetting the indentatio= n to match the > intended structure=E2=80=9D. One argument I've heard from braces fans is that sometimes they want their own structure, which does not match the actual block structure. Example: FILE* f =3D fopen(...); // do stuff with f // at this indent level fclose(f); // back to normal But really this is just working around other limitations in the language (i.e. lack of a with-statement equivalent). Cheers, Chris -- http://rebertia.com