RE: [PHP-DEV] How to build a real Trait thing without exclusion and renaming
| From: | Andi Gutmans | Date: | Thu, 28 Feb 2008 04:12:00 +0000 |
| Subject: | RE: [PHP-DEV] How to build a real Trait thing without exclusion and renaming | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35839@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Joshua Thompson [mailto:spam.goes.in.here@gmail.com]
> Sent: Wednesday, February 27, 2008 6:54 PM
> To: internals@lists.php.net
> Subject: Re: [PHP-DEV] How to build a real Trait thing without
> exclusion and renaming
>
> I was working on a detailed RFC of something along these lines. I
> didn't
> include the local keyword, instead I went the route of stateful traits
> and forced the definition of which scope in the class. I also tried to
> keep the number of keywords to 1 (
trait).
>
> I will keep working on it, and hopefully post it tomorrow for review.
OK but I wouldn't get too caught up on the number of keywords although
we obviously don't want too many.
By the way one thing I left out of my proposal (mistakenly) was that
local can also be used on a function so that "use TraitA *" wouldn't
include it in the aggregating class.
Andi