Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46088 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10585 invoked from network); 18 Nov 2009 18:44:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2009 18:44:04 -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 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Linux 2.4/2.6 Received: from [63.205.162.117] ([63.205.162.117:42208] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 71/E1-16241-270440B4 for ; Wed, 18 Nov 2009 13:44:03 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id 867F1E11FF; Wed, 18 Nov 2009 10:41:37 -0800 (PST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 18 Nov 2009 10:43:59 -0800 Message-ID: <4B044070.1010607@zend.com> Date: Wed, 18 Nov 2009 10:44:00 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: RQuadling@googlemail.com CC: internals@lists.php.net References: <4B01A4C2.8030602@gmx.net> <10845a340911180153g64333917p591dfff925f907fd@mail.gmail.com> In-Reply-To: <10845a340911180153g64333917p591dfff925f907fd@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Nov 2009 18:43:59.0650 (UTC) FILETIME=[176AF020:01CA687F] Subject: Re: [PHP-DEV] Closures and $this From: stas@zend.com (Stanislav Malyshev) Hi! > As for public/protected/private ... > > $fn = function() use() bind() access(CLOSURE_PUBLIC | > CLOSURE_PROTECTED | CLOSURE_PRIVATE) {}; I have very hard time imagining somebody that would be comfortable using such a construct. What happened to keeping it simple? And why every tiniest feature of every remotest imaginable use case has to be brought into the language syntax? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com