Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25716 invoked from network); 27 Mar 2015 22:17:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2015 22:17:05 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.169 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.169 mail-pd0-f169.google.com Received: from [209.85.192.169] ([209.85.192.169:36834] helo=mail-pd0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/CD-38005-0E6D5155 for ; Fri, 27 Mar 2015 17:17:04 -0500 Received: by pdcp1 with SMTP id p1so17434931pdc.3 for ; Fri, 27 Mar 2015 15:17:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=mDQVntbNo9BfFpS76Ej6tdLtKgkCgx8M6GQk+jRZ0ro=; b=t1pg/5bkO4XuL4qtCkjFbVXfQ1dNh7B1ffTlEna2+DGeOFRzobi48bsS7Cz509UVB6 zwTwWmx2FLMIRnyXu7bFidoCWKh3wnTeDHVYmWGI2QtF91/kqTWAZYpOUn3+ErtsMQ0L 7xgEj1qWNhe8bTFWgGzLbTE8FSIwByyKvvSU0eLOClhQBcbtlwSXl4YtYRB3c7qUjb4q jER+VQfqM3D8UgAwAfaGhoEAKDaiDQa3lVcGOQ8SUP3Cdn0ok4fE/8/fX44wPwUw890u ROXZeVX1yPv04715hvzLMnRDG+NjIa+Oh6OhU6fQ5/VefZWYJp984xx7VZpVUIU4mTge sdxQ== X-Received: by 10.66.228.104 with SMTP id sh8mr38250110pac.63.1427494621252; Fri, 27 Mar 2015 15:17:01 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id fd5sm3140139pdb.67.2015.03.27.15.17.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Mar 2015 15:17:00 -0700 (PDT) Message-ID: <5515D6DD.9000104@gmail.com> Date: Fri, 27 Mar 2015 15:17:01 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Philip Sturgeon CC: "internals@lists.php.net" References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] [RFC] Anonymous Classes From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > For anyone else concerned, an anon class inside a parent class is only > able to act with its public interface. Yes, that is weird, but there > is currently no support in PHP for nested classes. True. I'm just thinking we'll end up in the same position as closures in 5.3 where scope support is sorely missing and I have to deal a lot with apps having to still support 5.3 and doing weird tricks because of that lack of support. OTOH, implementing it may not be easy as we have to reconcile 2 scopes there. Not a reason not to do it (I voted yes :) but a reason to prioritize fixing it soon. -- Stas Malyshev smalyshev@gmail.com