Re: [VOTE] [RFC] Anonymous Classes
| From: | Stanislav Malyshev | Date: | Fri, 27 Mar 2015 22:17:01 +0000 |
| Subject: | Re: [VOTE] [RFC] Anonymous Classes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-85516@lists.php.net to get a copy of this message | ||
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