Hi,

Are there any thoughts regarding importing multiple functions of a namespace 
with a wildcard?

A use case being, for example, assertions from a testing framework.

use (or use function) TestingFramework\Assertions\<chosen wildcard here>; // in 
java * is used for wildcard

Regards,
Marcello

On 15 Aug 2013, at 14:06, Igor Wiedler wrote:

> Hi Daniel,
> 
> Thanks for the suggestion. Since it is less straight-forward I would rather 
> just move forward with the current syntax. I'd hate to see the proposal 
> rejected because people did not like the syntax.
> 
> Regards,
> 
> Igor
> 
> On Aug 8, 2013, at 10:30 PM, Daniel Bingham <daniel.bing...@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.  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 <m...@php.net> wrote:
>> On 8 August 2013 14:29, Igor Wiedler <i...@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
>> 
>> 
> 
> 
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
> 




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to