Re: [RFC] Anonymous Classes
| From: | Philip Sturgeon | Date: | Mon, 09 Mar 2015 00:28:03 +0000 |
| Subject: | Re: [RFC] Anonymous Classes | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84449@lists.php.net to get a copy of this message | ||
Patrick,
On Sat, Mar 7, 2015 at 2:22 AM, Patrick Schaaf <php@bof.de> wrote:
>
> Am 06.03.2015 20:14 schrieb "Philip Sturgeon" <pjsturgeon@gmail.com>:
>>
>> Right, this here RFC has been drastically improved.
>>
>> https://wiki.php.net/rfc/anonymous_classes
>>
>> Anyone got any doubts or troubles at this point?
>
> Can we / could we do "extends self", "extends static", or even
> "extends
> $someclassname" ?
>
> The first two could be handy in factory like object methods, and the last
> one generally in factory methods.
>
> best regards
> Patrick
Could you maybe make some full examples? I'm not visualising the use
case. It sounds like something which would be better off as another
RFC as its extra features.
This is just making anonymous definitions possible, not trying to take
on a whole bunch of different features in one go.