Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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; 'pypi': 0.07; 'python3': 0.07; 'block;': 0.09; 'coders': 0.09; 'if,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; 'project,': 0.12; 'all).': 0.16; 'c/c++': 0.16; 'comments:': 0.16; 'indent': 0.16; 'mangled': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'language': 0.16; 'wrote:': 0.18; 'header:User- Agent:1': 0.23; 'primary': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'topic': 0.29; 'code': 0.31; 'that.': 0.31; 'encouraged': 0.31; 'end,': 0.31; 'indentation': 0.31; 'probably': 0.32; 'comment': 0.34; 'could': 0.34; 'case,': 0.35; 'add': 0.35; 'there': 0.35; 'next': 0.36; 'project': 0.37; 'easily': 0.37; 'being': 0.38; 'to:addr:python- list': 0.38; 'bad': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'most': 0.60; 'new': 0.61; 'subject:This': 0.74; 'received:fios.verizon.net': 0.84; 'stripped.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: OT: This Swift thing Date: Wed, 04 Jun 2014 18:18:18 -0400 References: <34564700423508781.788278sturla.molden-gmail.com@news.gmane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401920316 news.xs4all.nl 2890 [2001:888:2000:d::a6]:48458 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72663 On 6/4/2014 10:53 AM, Mark H Harris wrote: > The topic came up because the C/C++ coders were being encouraged to > try Python3 as the language of choice for a new project, and someone > said they would never consider Python for a project primary language > because of indentation block delimiting. The whole debate, as in most > flames, was stupid. The primary paradigm on this topic locally is that > indents are bad because malformed or mangled code cannot be reformatted > easily (if at all). Begin solution:':' as the end of a line means 'begin block; indent next line'. If one is using tools that mangle, one can add end-of-block comments: '# end, # end if, # if (end implied), or even just ##. In any case, the stylized comment could mean 'dedent' and code could be reconstituted with all indents stripped. There are probably programs on PyPI to do that. End of excuse. -- Terry Jan Reedy