Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: dieter Newsgroups: comp.lang.python Subject: Re: Fear and suspicion of lambdas, was Re: Meta decorator with parameters, defined in explicit functions Date: Fri, 01 Jul 2016 09:04:50 +0200 Lines: 18 Message-ID: References: <85mvm5vrbw.fsf@benfinney.id.au> <0690f476-95ad-4dec-87e5-42ecee07fdcd@googlegroups.com> <87poqx96ul.fsf@handshake.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de plObl0C5rAZtN5K7PwC9IwkouqqbN/Su2TIgSGq+henQ== Cancel-Lock: sha1:whWTJw0UoRKh4VZn5yoHpz+xsKI= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'javascript,': 0.07; 'purpose.': 0.07; 'callback': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'charset:iso-8859-7': 0.15; '(rather': 0.16; '2016': 0.16; 'programmers,': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:parameters': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'anonymous': 0.22; 'explicit': 0.22; 'lawrence': 0.22; 'component': 0.23; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'extensively': 0.29; 'e.g.': 0.30; 'but': 0.36; '(and': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'why': 0.39; 'easily': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'received:de': 0.40; 'more': 0.63; 'expressive': 0.84; 'otten': 0.84; 'suspicion': 0.84; 'understood.': 0.84; 'maybe,': 0.91; 'widespread': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57b38dd2.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <87poqx96ul.fsf@handshake.de> X-Mailman-Original-References: <85mvm5vrbw.fsf@benfinney.id.au> <0690f476-95ad-4dec-87e5-42ecee07fdcd@googlegroups.com> Xref: csiph.com comp.lang.python:110888 Peter Otten <__peter__@web.de> writes: > Lawrence DąOliveiro wrote: > >> On Tuesday, June 28, 2016 at 5:03:08 PM UTC+12, Ben Finney wrote: >> >>> I would like to see a more Pythonic, more explicit and expressive >>> replacement with its component parts easily understood. >> >> I donąt know why this fear and suspicion of lambdas is so widespread among >> Python users ... former Java/C# programmers, perhaps? Maybe, it's the name ("lambda"). In Javascript, anonymous functions are widespread (and extensively used for e.g. callback definitions) - but it uses the much more familiar "function" (rather than "lambda") for this purpose.