Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34158 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41909 invoked by uid 1010); 20 Dec 2007 18:12:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41894 invoked from network); 20 Dec 2007 18:12:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2007 18:12:19 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:42115] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/E3-19413-280BA674 for ; Thu, 20 Dec 2007 13:12:18 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 20 Dec 2007 20:12:15 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 20 Dec 2007 10:12:12 -0800 Message-ID: <476AB07C.6030403@zend.com> Date: Thu, 20 Dec 2007 10:12:12 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Alexey Zakhlestin CC: troels knak-nielsen , internals@lists.php.net References: <98b8086f0712150818n40056cedyf0aae7a5a08a27b7@mail.gmail.com> <200712172130.08216.larry@garfieldtech.com> <4FADC266-873E-4FD2-BEC8-28EA9D833297@procata.com> <200712172341.54372.larry@garfieldtech.com> <98b8086f0712191345h7fe11a7kc5d34b0369754c8f@mail.gmail.com> <47699960.1090101@zend.com> <98b8086f0712191528n2fd348d0oe3da9eed20d87194@mail.gmail.com> <4769ACF5.7000701@zend.com> <476AA387.3070002@zend.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 20 Dec 2007 18:12:12.0207 (UTC) FILETIME=[D7BEFBF0:01C84333] Subject: Re: [PHP-DEV] Re: PATCH: anonymous functions in PHP From: stas@zend.com (Stanislav Malyshev) > 1) you need to declare them somewhere, which doesn't make much sense > if these functions are meant to be used only in such context. If you need them in context, you can declare them in context. > Sometimes there are even problem to give meaningful names to such > functions Just describe what it does. If it is not unique, then the function is not unique. > 2) inline-function is a good candidate for automatic optimization (in > case of array_filter, array_map and similiar the construction can be > converted to the loop) We have neither such optimizations nor any plans to make those, AFAIK. > 3) as the result of (1) and (2) it can be used for fast "currying" of > other functions And why we need fast currying of other functions? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com