Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.058 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'subject:Python': 0.06; '(except': 0.07; 'float': 0.07; '22,': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'jan': 0.12; 'readable': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'preferred': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; "i've": 0.25; 'compare': 0.26; 'define': 0.26; 'right.': 0.26; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'larry': 0.31; 'quite': 0.32; 'style': 0.33; 'maybe': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'being': 0.38; 'pm,': 0.38; 'that,': 0.38; 'little': 0.38; 'anything': 0.39; 'eye': 0.61; 'times': 0.62; 'kind': 0.63; 'more': 0.64; 'taking': 0.65; 'to:addr:gmail.com': 0.65; 'equals': 0.68; 'subject:! ': 0.74; '2015': 0.84; 'actually,': 0.84; 'cole': 0.84; 'instantly': 0.84; 'start.': 0.84; 'serious': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=vZSM0dehqut7uLGi20cQNgvPHEm3aMgAy3TJYS2BgGU=; b=nvuQOL9pllAYH+VIV2R8Y0XZIPKHwIBfrJoVGZ4PXg71u9Vvig+BSZ2O7hOSjiIihk 0gjD/qYiBsW7MtOCk1CwbQ1dIY23rvLOk7aW43Rai92aXUHTWd+5jPfRAsqAZijta9oG m23VTg2te744sIQKNb9zDo1L8Dfbi/WdLLpQnOL9lKVxjyhDgGvW4V/Te4NfegIpK/qJ gww5TQrbUNMEa4ovL099krbSNTgZAbn5exO/C1cfyInwPoy9a5oR/ukE2jU1HvXj8Lm4 xD16cKX3uLs6VE2mgBxIuDurKLCIVb/3i9E6dXuQL38AW3p8jJ1NtDmTs/yEjZLdMCOk xb1Q== MIME-Version: 1.0 X-Received: by 10.152.225.138 with SMTP id rk10mr99946lac.18.1421912428657; Wed, 21 Jan 2015 23:40:28 -0800 (PST) In-Reply-To: References: <54c07d04$0$13012$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 22 Jan 2015 07:40:28 +0000 Subject: Re: Python is DOOMED! Again! From: Nicholas Cole To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Cc: "python-list@python.org" 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421912430 news.xs4all.nl 2860 [2001:888:2000:d::a6]:51221 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4543 X-Received-Body-CRC: 3678305963 Xref: csiph.com comp.lang.python:84205 On Thu, Jan 22, 2015 at 5:56 AM, Chris Angelico wrote: > On Thu, Jan 22, 2015 at 4:50 PM, Nicholas Cole wrote: >> I would have preferred Python to mimic: >> >> Define function add taking price1, the price2, print_error equals true. >> Price1 is a float. Price2 is a float. The function returns a float. >> >> But now this is sounding a little like something from Larry Wall, and so I >> had better stop! > > Actually, it sounds like pre-ANSI C. Something like this: > > float add(price1, price2) > float price1; > float price2; > { > ... body of function ... > } > > Compare the more modern C style: I hadn't thought of that, but yes, you are quite right right. I think my point stands. I've ever programmed anything serious in any kind of C, but the pre-ANSI C style is instantly readable to me (except maybe that I had to look three times to find the return signature because my eye glossed over the float at the start. Far more intuitive than what is being proposed^W^W is part of Python 3. :-)