> -----Ursprüngliche Nachricht----- > Von: Patrick Schaaf [mailto:p...@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" <pjsturg...@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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php