Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46825 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15996 invoked from network); 19 Jan 2010 18:40:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2010 18:40:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:39546] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/D1-29385-99CF55B4 for ; Tue, 19 Jan 2010 13:40:27 -0500 Received: from us-gw1.zend.com (unknown [192.168.16.5]) by il-mr1.zend.com (Postfix) with ESMTP id ABD7550506; Tue, 19 Jan 2010 20:24:06 +0200 (IST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 19 Jan 2010 10:40:19 -0800 Message-ID: <4B55FC94.40302@zend.com> Date: Tue, 19 Jan 2010 10:40:20 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b2pre Thunderbird/3.0 MIME-Version: 1.0 To: Richard Lynch CC: Michael Wallner , internals@lists.php.net References: <4B54FC87.8070106@zend.com> <4F.56.22457.408955B4@pb1.pair.com> <4B55D850.8000604@zend.com> <3722.98.193.1263924821.squirrel@www.l-i-e.com> In-Reply-To: <3722.98.193.1263924821.squirrel@www.l-i-e.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jan 2010 18:40:19.0797 (UTC) FILETIME=[D9FC8850:01CA9936] Subject: Re: [PHP-DEV] Re: function call chaining From: stas@zend.com (Stanislav Malyshev) Hi! > When I use one, I consider it exotic/obtuse/unusual enough to require > self-documenting code, with a temp variable whose name include > 'closure'. By "use" I meant not "use it so rarely that it's an exotic hack for me that I have to explain what I did here", I mean "write code that relies on this as routine language feature". Maybe I'm moving too fast though and closure use is not that widespread in PHP, maybe it never will even. > Maybe if I was typing all closures all day in PHP I'd see more need > for it, but are you really doing this that often? No, I don't do that often - but as soon as I started playing with it, I felt the need for this syntax, that's why I did it. I think it's usefulness depends a lot on how much you use them, so maybe I have to wait and see if it will be mainstream enough. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com