AW: [PHP-DEV] [RFC] Anonymous Classes
| From: | Robert Stoll | Date: | Sat, 07 Mar 2015 11:28:56 +0000 |
| Subject: | AW: [PHP-DEV] [RFC] Anonymous Classes | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84401@lists.php.net to get a copy of this message | ||
> -----Ursprüngliche Nachricht-----
> Von: Patrick Schaaf [mailto:php@bof.de]
> Gesendet: Samstag, 7. März 2015 08:22
> An: Philip Sturgeon
> Cc: internals; Robert Stoll
> Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes
>
> 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
Personally, I would go step by step. First introduce anonymous classes and then extend it with
features like the one described above - should be less controversial.
The last construct idea described by you would introduce dynamic inheritance to a certain degree and
I am not so sure if that is really a good idea
Cheers,
Robert