Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.091 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'doing,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:programming': 0.16; 'supplement': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'chris': 0.29; 'am,': 0.29; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'figure': 0.32; 'skip:c 30': 0.32; 'standards': 0.33; 'possible.': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'c++': 0.36; 'keyword': 0.36; 'that,': 0.38; 'recent': 0.39; 'bad': 0.39; "couldn't": 0.39; 'either': 0.39; 'kind': 0.63; 'mar': 0.68; 'article,': 0.84; 'standards,': 0.84; 'facilities.': 0.91; '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=dmeQzhAacAxWaL0Y4pGIg/GeUxX5pi3ZNDz3EOk1d5k=; b=O+yMTu0VSJSkrXmFMCBNH7dgc18aVl9b1E9WQLx0pZ/vExy1oLTMt4OA1sRq/e6e0r 974s8f7ycjjanF0buUG7uZClz0KZtPJj4s71/VIdkP4yNt2XohjqqKA+0Y8TRcAB60Ax kbO1ZUpDYc+QhHMrRcS4CZ7HrR+OwmOdv3FNO+4s/oe4gviGs5lhWzofSS69mCxXNOFO YBEY33JqNynm63P8OsJ48G4s4OEAd+Vm/0+Jwp147vPIT8aizkgbe4/B8z2aekmgxlK8 +NigI5GgeANMrT7bj+6igOQQQqPXdtXGLtb8y604Osp6pWLPWj05xzQin43mFq+quQSb EI0w== MIME-Version: 1.0 X-Received: by 10.66.129.133 with SMTP id nw5mr2291214pab.98.1393969977911; Tue, 04 Mar 2014 13:52:57 -0800 (PST) In-Reply-To: <87ppm1myhi.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> <87ppm1myhi.fsf@elektro.pacujo.net> Date: Wed, 5 Mar 2014 08:52:57 +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: 1393969981 news.xs4all.nl 2900 [2001:888:2000:d::a6]:51065 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67731 On Wed, Mar 5, 2014 at 8:43 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> C++ at least has typedefs, and in the newer standards, the 'auto' >> keyword was repurposed. > > Last I checked, C++ had no satisfactory way to express > callbacks/functors/listeners/lambdas. That's why Qt came up with a > metacompiler to supplement C++'s facilities. I think one of the recent standards added some kind of closure for callbacks. I tried to grok it and couldn't figure out what it was doing, so I gave it up as a bad job. It got hairy. Really hairy. Either that, or I was reading a poorly-written article, which is also possible. ChrisA