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!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'python': 0.08; 'accidental': 0.09; 'clearly,': 0.09; 'readable': 0.09; 'received:209.85.160.174': 0.09; 'received:mail- gy0-f174.google.com': 0.09; 'syntax.': 0.09; 'case.': 0.15; "';'": 0.16; 'lan': 0.16; 'magnitude.': 0.16; 'optimizing': 0.16; 'semicolon': 0.16; 'semicolons': 0.16; 'sizable': 0.16; 'cc:addr :python-list': 0.16; 'syntax': 0.16; 'wrote:': 0.16; "wouldn't": 0.17; 'wed,': 0.17; 'cheers,': 0.18; 'programming': 0.20; "we'd": 0.21; 'header:In-Reply-To:1': 0.22; '(or': 0.23; 'indentation': 0.23; 'optional': 0.23; 'pm,': 0.24; 'changed': 0.24; 'aug': 0.24; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.30; 'lines': 0.30; 'cc:addr:gmail.com': 0.30; 'chris': 0.32; 'coding': 0.32; 'source': 0.33; 'majority': 0.34; 'languages.': 0.34; 'received:209.85.160': 0.35; 'core': 0.36; 'cc:2**1': 0.36; 'but': 0.37; 'think': 0.38; 'received:google.com': 0.38; 'received:209.85': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'case': 0.39; 'more': 0.60; 'free': 0.63; 'noise': 0.67; 'subject:line': 0.73; 'to:addr:yahoo.com': 0.83; 'omission': 0.84; 'sender:addr:chris': 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; bh=CU87N8yUgepXTw6r/+Eedc6MPMhR9qi5ONWQwYr/ujg=; b=EwIEBhTBYB36F6cyAnaOB8l7fsJmG5ApesHJElI1lCrRGAnElDYSzu0EJf8D09wdrU Nu3VfD1LztISFpqtrXXHDXNLi00bLnik5mlRvJyDmsIVh19UGJ1aL4iz7pewc/l1/kZI Qy+DJdmbikHYdwK1cn+3QzgLNiepHoxs1d4Is= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <1313031175.38817.YahooMailNeo@web121515.mail.ne1.yahoo.com> 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> <1313031175.38817.YahooMailNeo@web121515.mail.ne1.yahoo.com> Date: Wed, 10 Aug 2011 21:16:54 -0700 X-Google-Sender-Auth: aofg5WIh1-5C9swDHUrMYO1c_J8 Subject: Re: allow line break at operators From: Chris Rebert To: Yingjie Lan Content-Type: text/plain; charset=UTF-8 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313036218 news.xs4all.nl 23889 [2001:888:2000:d::a6]:53805 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11178 On Wed, Aug 10, 2011 at 7:52 PM, Yingjie Lan wrote: > :And if we require {} then truly free indentation should be OK too! But > > :it wouldn't be Python any more. > > Of course, but not the case with ';'. Currently ';' is optional in Python, I think of it more as that Python deigns to permit semicolons. > But '{' is used for dicts. Clearly, ';' and '{' are different in magnitude. > > So the decision is: shall we change ';' from optional to mandatory > to allow free line splitting? Hell no, considering that the sizable majority of lines *aren't* split, which makes those semicolons completely redundant to their accompanying newlines. We'd be practicing poor Huffman coding by optimizing for the *un*common case. It would also add punctuational noise to what is otherwise an amazingly clean and readable syntax. Accidental semicolon omission is (IMO) the most irritating source of syntax (and, inadvertently, sometimes other more serious) errors in curly-braced programming languages. Such a core syntax feature is not going to be changed lightly (or likely ever). Cheers, Chris