Re: Re: Trait aliasing syntax suggestions
| From: | Derick Rethans | Date: | Mon, 25 Feb 2008 15:02:31 +0000 |
| Subject: | Re: Re: Trait aliasing syntax suggestions | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35790@lists.php.net to get a copy of this message | ||
On Thu, 21 Feb 2008, Stefan Marr wrote:
> jvlad schrieb:
> > in other words, why to introduce such a new thing as trait instead of using
> > classes and trait'ing them?
>
> I've introduced it as a separate notion from classes to avoid misconception
> and problems occurring from conflicting properties and constant definitions.
And that is something we need, as I had a hard time parsing the previous
example without this.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org