Re: Re: [RFC] Importing namespaced functions

From: Date: Thu, 08 Aug 2013 20:30:47 +0000
Subject: Re: Re: [RFC] Importing namespaced functions
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-68455@lists.php.net to get a copy of this message
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, 2013 at 2:44 PM, Michael Wallner <mike@php.net> wrote:

> On 8 August 2013 14:29, Igor Wiedler <igor@wiedler.ch> 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/388
> >
>
> I like it. It improves the state for non-OOP in PHP.
>
> --
> Regards,
> Mike
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


Thread (37 messages)

« previous php.internals (#68455) next »