Re: [RFC] Array Dereferencing
| From: | Ferenc Kovacs | Date: | Wed, 09 Jun 2010 14:06:37 +0000 |
| Subject: | Re: [RFC] Array Dereferencing | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48705@lists.php.net to get a copy of this message | ||
>
>
> In fact the uniq problem i see, is could be a name conflict like :
>
> function Foo() {
> // ...
> }
>
> class Foo() {
> public __create() {
> // ...
> }
> }
>
> Foo(); // Instanciate the class or call the function ?
>
>
And I think that this is a much higher cost, that we gain.
If we want this functionality, then Mathieu Suen's idea is better IMHO:
http://www.mail-archive.com/internals@lists.php.net/msg46764.html
eg. (new Foo())->bar()
Tyrael