Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78833 invoked from network); 24 Jun 2008 16:55:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 16:55:10 -0000 Authentication-Results: pb1.pair.com header.from=kingwez@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kingwez@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.44.28 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kingwez@gmail.com X-Host-Fingerprint: 74.125.44.28 yx-out-2324.google.com Received: from [74.125.44.28] ([74.125.44.28:1035] helo=yx-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/92-17106-EE621684 for ; Tue, 24 Jun 2008 12:55:10 -0400 Received: by yx-out-2324.google.com with SMTP id 3so479778yxj.83 for ; Tue, 24 Jun 2008 09:55:08 -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=KDRtlv7A44hZo2wjm63biKDKotGTgY6hGVC5hm2ZaSw=; b=VO3YyfUz9KZY4TyyOV6kTMdG52aO/fs2N8nsfnEZ6UkDT10OQK9q4Tw6hYAACJKi+A Kogoa063DuGhw2Oyd2ixEaxLsJsA0PcO78jpeTUKYFS5LroBAqvwjBWqsl5fTUsSbh3Q dkwWmt94xFeNbFPOKXPm3jFdVs/2R8jSPtxtQ= 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=dkpPjVXgxXWeTzBk1uysor5VSOhSj1MRaUjE/rXtXt4zaw5vE2H2tWubNVCHGIxOM0 JYCpY4pXVDEcag4XMv1d9KJl5Vr0ULYOlGwgoK1A9s3B45fGm4GzaxukoKVGLYCSzJj5 RRjyyNjNcL1TgOTc4RYiXHsDXrdLVAxGcteCQ= Received: by 10.142.230.9 with SMTP id c9mr3944715wfh.343.1214326506298; Tue, 24 Jun 2008 09:55:06 -0700 (PDT) Received: by 10.114.76.5 with HTTP; Tue, 24 Jun 2008 09:55:06 -0700 (PDT) Message-ID: <4e89b4260806240955g76e1ada9k3f5cbf6ca2059ef@mail.gmail.com> Date: Tue, 24 Jun 2008 12:55:06 -0400 To: "Christian Seiler" Cc: "php-dev List" In-Reply-To: <4856A547.3080801@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4856A547.3080801@gmx.net> Subject: Re: [PHP-DEV] [PATCH] [RFC] Closures and lambda functions in PHP From: kingwez@gmail.com ("Wez Furlong") Just to chime in on this thread; I like your implementation and (after reading through all the other comments so far), prefer the lexical keyword to import variables. As I've said before, the closure aspect of this is the hardest to gel into PHP, which deliberately avoids inheriting scopes. Since everyone has grown up explicitly managing this via the global keyword, I think it makes a lot of sense to use similar syntax for getting at those lexical values. I'm +1 for inclusion of this into the next release of PHP (post 5.3), and like Andrei, would love there to be a first class callable type for dynamic invocation of "regular" functions and methods. --Wez.