Re: [RFC] Importing namespaced functions
| From: | Ferenc Kovacs | Date: | Thu, 15 Aug 2013 13:20:27 +0000 |
| Subject: | Re: [RFC] Importing namespaced functions | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68527@lists.php.net to get a copy of this message | ||
On Thu, Aug 15, 2013 at 3:11 PM, Marcello Duarte
<marcello.duarte@gmail.com>wrote:
> 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
>
currently this isn't supported for namespaced classes, so I think it would
be a good idea to keep this rfc consistent with what we have there.
of course a separate rfc can be created to introduce this feature, but from
the previous discussions I think that it would see a bit more debate, and
would also much harder to implement than what is proposed here.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu