Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28664 invoked from network); 18 Jun 2008 06:36:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jun 2008 06:36:56 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.30 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 74.125.46.30 yw-out-2324.google.com Received: from [74.125.46.30] ([74.125.46.30:6391] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EA/F2-03518-60DA8584 for ; Wed, 18 Jun 2008 02:36:55 -0400 Received: by yw-out-2324.google.com with SMTP id 5so63589ywb.83 for ; Tue, 17 Jun 2008 23:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ry+TKRPO2LY78divJTZsa2whk/kSsWhE7zGegM6WfNE=; b=KUXqv73jdidsuWOsJsaAynq37vgoD0zSu1NLjQdN0/hui+rhyrbwgC3tbwNqT7+nVJ +hf0j8N2Xuk65QFgTnkkbCv+cDwvXiGIoRHXDvIOoXQuUovUZsW1dXBoVrvpRhyEs40R iyujLqcvmsofMo23L7No/KC2LPOUiyyqwJl7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=itUoKuzLOJPCT8EcdG/HTXJkofMt4HopNELkZnzXXh/qLfZsS2I9JZOou6tAbwAeW5 ca/y0Ou1PVrPfJKB5O7viJynhidj1hcgmbPO564qVU65iXY9j2Xd/DJj+YYinnl9Z2+i gmnfmblsMeOdhrplqZOei7hs3YfdoNM3bWLlE= Received: by 10.150.196.20 with SMTP id t20mr483341ybf.99.1213771012342; Tue, 17 Jun 2008 23:36:52 -0700 (PDT) Received: by 10.150.158.8 with HTTP; Tue, 17 Jun 2008 23:36:52 -0700 (PDT) Message-ID: Date: Wed, 18 Jun 2008 10:36:52 +0400 To: "Andi Gutmans" Cc: "Christian Seiler" , "php-dev List" In-Reply-To: <698DE66518E7CA45812BD18E807866CE01B11811@us-ex1.zend.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> <698DE66518E7CA45812BD18E807866CE01B11811@us-ex1.zend.net> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: indeyets@gmail.com ("Alexey Zakhlestin") On 6/18/08, Andi Gutmans wrote: > 1) I am not sure that the current semantics of the "lexical" keyword is great in all cases. Is the reason why you don't allow by-value binding so that we don't have to manage more than one lambda instance per declaration? by-reference binding is much closer to other languages symantics. I guess, that was the main reason Christian chose it. "by-value" may still exist, if people find, that they need it, but only in addition, please. lambda has to reflect changing state of context, to be truly useful -- Alexey Zakhlestin http://blog.milkfarmsoft.com/