Hey Leigh,
I disagree that it suggests evaluation, but it could easily be a personal
interpretation thing. In my interpretation, when looking at use
statements, I know nothing is being evaluated. Symbols are being imported
into the namespace. How likely is it that baz returns something that can
On Aug 8, 2013 9:31 PM, "Daniel Bingham"
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 th
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. I have nothing for "use const", but "use const" feels more natural
to me than "use function" does.
Just an idea for pondering!
Dan
On Thu, Aug 8,
On 8 August 2013 14:29, Igor Wiedler wrote:
> Hi everyone,
>
> I just wanted to bump this topic, since there's not been much feedback during
> the last few weeks. Comments on the patch are also welcome.
>
> RFC: https://wiki.php.net/rfc/use_function
> Patch: https://github.com/php/php-src/pull/38
Yes, aliases are supported just as you would expect. I will add an example to
the RFC.
Thanks,
Igor
On Aug 8, 2013, at 8:17 PM, "Robert Stoll" wrote:
> Hi Igor,
>
> Personally I like your RFC. I also like the fact that it is possible to
> "replace" built-in functions where desired by declari
o;
cheers,
Robert
-Ursprüngliche Nachricht-
Von: Igor Wiedler [mailto:i...@wiedler.ch]
Gesendet: Donnerstag, 8. August 2013 14:29
An: internals@lists.php.net
Betreff: [PHP-DEV] Re: [RFC] Importing namespaced functions
Hi everyone,
I just wanted to bump this topic, since there'
Hi everyone,
I just wanted to bump this topic, since there's not been much feedback during
the last few weeks. Comments on the patch are also welcome.
RFC: https://wiki.php.net/rfc/use_function
Patch: https://github.com/php/php-src/pull/388
Thanks,
Igor
--
PHP Internals - PHP Runtime Develop