Re: RFC: Traits for PHP
| From: | Richard Quadling | Date: | Thu, 21 Feb 2008 12:03:24 +0000 |
| Subject: | Re: RFC: Traits for PHP | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35684@lists.php.net to get a copy of this message | ||
On 20/02/2008, Stefan Marr <php@stefan-marr.de> wrote:
> > If we feel it gets necessary we probbaly
> > might want to support a syntax like:
> > 'trait_method' => false
> > 'trait_method' => 'new_name'
> > 'trait_method' => array('new_name', 'trait_method'
>
> I'm not comfortable with this notation, since it strengthens the
> impression that it is renaming.
>
> In my eyes it looks like this:
>
> "trait_method => false" means trait_method is moved to false, it is
> deleted, but this leads to the wrong impression of this:
> "trait_method => new_name" means trait_method is moved to new_name,
> and I am absolutely against this notion.
>
> Kind Regards
> Stefan
What would you all read this to be ...
void := 'trait_method'
'new_name' := 'trait_method'
array('new_name', 'trait_method') := 'trait_method'
:= is "becomes equal".
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"