Re: Re: [RFC] Importing namespaced functions
| From: | Leigh | Date: | Fri, 09 Aug 2013 17:16:34 +0000 |
| Subject: | Re: Re: [RFC] Importing namespaced functions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68468@lists.php.net to get a copy of this message | ||
On Aug 8, 2013 9:31 PM, "Daniel Bingham" <daniel.bingham@ellislab.com>
wrote:
>
> Hey Igor,
>
> I love the RFC, but how about:
>
> use bar\baz() as baz;
>
> As an alternative to "use function". Still new syntax, but a little less
> wordy.
The parenthesis add the feeling that it should be evaluated imho, I.e. the
result of that function should be used as baz. That could possibly lead to
confusion. I know you're suggesting as an additional syntax not
alternative, but I don't get good vibes from it.
Also might not even be possible due to how the parser handles parenthesis,
but I'd have to look over the parser grammar to be sure.
But another +1 from me on the RFC as a whole. Now its there I can't believe
it took so long.