Re: Re: [RFC] [PHP 6] Uniform Variable Syntax
| From: | Lazare Inepologlou | Date: | Wed, 02 Jul 2014 16:04:42 +0000 |
| Subject: | Re: Re: [RFC] [PHP 6] Uniform Variable Syntax | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75167@lists.php.net to get a copy of this message | ||
2014-07-02 17:51 GMT+02:00 Nikita Popov <nikita.ppv@gmail.com>:
> On Mon, Jun 9, 2014 at 3:33 PM, Nikita Popov <nikita.ppv@gmail.com> wrote:
>
> > Hi internals!
> >
> > I have created a proposal for a more consistent and complete variable
> > syntax for PHP 6:
> >
> > https://wiki.php.net/rfc/uniform_variable_syntax
> >
> > The RFC is targeted at PHP 6 because it breaks compatibility for some
> > rarely used variable-variable constructs.
> >
>
> Any more feedback on this? Otherwise I'll start the vote sometime soon :)
>
>
Yes, in the RFC, you mention that this will be possible:
($obj->closure)()
While this is very welcome, I was wandering if we could skip the extra
parenthesis, like this:
$obj->closure()
Likewise, this would also be nice:
new ClassName->foo()
Thanks,
Lazare INEPOLOGLOU
Ingénieur Logiciel