Re: RFC: Traits for PHP
| From: | Lars Strojny | Date: | Wed, 20 Feb 2008 08:52:36 +0000 |
| Subject: | Re: RFC: Traits for PHP | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35643@lists.php.net to get a copy of this message | ||
Hi Lukas,
Am Mittwoch, den 20.02.2008, 09:44 +0100 schrieb Lukas Kahwe Smith:
[...]
> Maybe its best to first leave out interfaces/abstract etc. Start
> simple, see how things get used, get more comfortable with the feature
> and then see about potentially expanding it.
I totally agree also I would like to have abstract methods in traits
(and don't beat me, I would like interface now too, for conceptual
integrity but the implemented interfaces should not derived by the using
classes). But: let us try to include a simple version of traits, without
abstract methods and trait interfaces in 5.3, get a huge amount of
feedback from the community and than think about implementing the more
complex stuff. I would like to see the following featureset:
* Method renaming (method => newMethod)
* Method hiding (method => null, method => false, both might work)
* No interfaces
* No abstract methods
* No visibility modifications
The last three point could be done for 5.4.
cu, Lars
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc
Attachment: [application/pgp-signature] Dies ist ein digital signierter Nachrichtenteil signature.asc