Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.stack.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'help?': 0.03; 'subject:Python': 0.05; 'python': 0.08; 'received:209.85.214.174': 0.13; 'cc:addr:python-list': 0.15; 'antti': 0.16; 'closures': 0.16; 'closures,': 0.16; 'curiosity,': 0.16; 'haskell,': 0.16; 'wrote:': 0.16; 'example.': 0.18; 'programming': 0.20; 'cheers,': 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'feature.': 0.23; 'suspect': 0.24; 'cc:2**0': 0.25; 'asking': 0.27; 'message-id:@mail.gmail.com': 0.28; 'languages.': 0.28; 'cc:addr:python.org': 0.29; 'chris': 0.30; 'functional': 0.30; 'received:209.85.214': 0.32; 'languages': 0.32; 'there': 0.33; 'someone': 0.34; 'typical': 0.34; 'something': 0.35; 'skip:" 10': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'received:209.85': 0.38; 'subject:with': 0.38; 'think': 0.38; 'received:209': 0.39; 'subject:: ': 0.39; 'more': 0.61; 'expert': 0.65; 'share': 0.66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=E/smDIYFpoDEgBZL07DHbKNtFCfIKnNN0XnVmfWNySk=; b=rDvdoAnHpcGASg0YMEOUGPNdLUD9/AO0YFj+Dt66b0kptxb6/fS3cD+geBg+xOtjAR vRn7YXK9Q7g98l5G1rilT9L7kGUnwMBay4ciPLEBDiVKt6skBH1RRS+A658eIxwvL4HA jp6A2l8X6HgkuMED4b9rfIcBeVQvMDVyz2bB8= MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 4 Feb 2012 10:58:49 +0000 Subject: Re: Common LISP-style closures with Python From: Arnaud Delobelle To: Antti J Ylikoski Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328353132 news.xs4all.nl 6859 [2001:888:2000:d::a6]:37790 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19857 On 4 February 2012 10:14, Antti J Ylikoski wrote: > On 4.2.2012 4:47, Chris Rebert wrote: >> Out of curiosity, what would be non-Common-Lisp-style closures? >> >> Cheers, >> Chris > > > I understand that a "closure" is something which is typical of functional > programming languages. =C2=A0-- Scheme-style closures, for example. > > I don't know Haskell, ML etc. but I do suspect that we could create closu= res > in those languages as well. =C2=A0Maybe someone more expert than me can h= elp? I think what Chris asking is: what is the feature of Common-Lisp closures that Python closures share but other languages don't? I think what he is implying is that there is no such feature. Python closures are no more "Common-Lisp-style" than they are "Scheme-style" or "Smalltalk-like" or any other language-like. --=20 Arnaud