Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3a.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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'oh,': 0.09; 'cc:addr :python-list': 0.11; 'declared': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'java.': 0.16; 'subject:programming': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'wed,': 0.18; "python's": 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'possess': 0.24; 'simpler': 0.24; 'java': 0.24; 'cc:2**0': 0.24; 'handling': 0.26; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'easier': 0.31; 'comparison': 0.31; 'lot.': 0.31; 'types.': 0.31; 'with,': 0.31; 'figure': 0.32; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'c++': 0.36; 'keyword': 0.36; 'shows': 0.36; 'how': 0.40; "you're": 0.61; 'mar': 0.68; 'forced': 0.84; 'standards,': 0.84; 'to:none': 0.92 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:cc :content-type; bh=YP80xbtXU6TmB4dz5f1i1Fon2Y8LfYKjnXL5FOvM8NU=; b=Hz5M8kxRZJm4kfKH8u4UZWeuZ0C1cABuVvuGfzdp8hPme3uR4UNsy1LH5lWYrFtNDQ ld/M+R1XUNkAH+UdH20eEHC3NZmNzakLOCXqifxY2VPUHZiFzOeLHyPqtf/ijaGEXSZf uUBjk0MBMO9rWEf3WDKJO0WlhAdr8bKUyAGLQzr75QAeY8ChTzAVsW2lIw5U4kn/CJda qkGolYb6spqt32cfrhu6y6gh4xvnqU/nVw5Cjdk/J9HqwZSd7EdiLRKmRedQ9nnVMXNM LueCBqwZA+4S8hZbVp6yeOhbt93JyLB00I5clYkcq9eC/c01ixCyd3C7j8da+KHB5iM3 RF9Q== MIME-Version: 1.0 X-Received: by 10.66.27.202 with SMTP id v10mr1922875pag.127.1393968413127; Tue, 04 Mar 2014 13:26:53 -0800 (PST) In-Reply-To: <87txbdmzh3.fsf@elektro.pacujo.net> References: <3b54a279-03a1-4a81-a428-ecad6eb16036@googlegroups.com> <216bb5f4-32c4-4f86-a9f4-1b0dd37a2a81@googlegroups.com> <0129a5b9-b85f-4ad5-b5e2-bfb2a48041d5@googlegroups.com> <5314bb96$0$29985$c3e8da3$5496439d@news.astraweb.com> <5315661c$0$2923$c3e8da3$76491128@news.astraweb.com> <53159540$0$2923$c3e8da3$76491128@news.astraweb.com> <87bnxloibq.fsf@elektro.pacujo.net> <8738ixofhl.fsf@elektro.pacujo.net> <87txbdmzh3.fsf@elektro.pacujo.net> Date: Wed, 5 Mar 2014 08:26:53 +1100 Subject: Re: Functional programming From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393968417 news.xs4all.nl 2963 [2001:888:2000:d::a6]:60552 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67724 On Wed, Mar 5, 2014 at 8:21 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> Oh, it's THAT problem. Well, it's still not really a fair comparison >> of declared types. It shows how Python's much easier to work with, but >> what you're showing off is the simpler exception handling :) > > The other example I gave is really bread-and-butter Java. An ergonomic > disaster and takes some staring at to figure out what's going on. > > Note that Java doesn't possess typedef's so you really are pretty much > forced to write those < , < >>'s a lot. C++ at least has typedefs, and in the newer standards, the 'auto' keyword was repurposed. ChrisA