Re: Consistent function names
| From: | Stanislav Malyshev | Date: | Tue, 03 Mar 2015 04:33:34 +0000 |
| Subject: | Re: Consistent function names | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-84214@lists.php.net to get a copy of this message | ||
Hi!
> I would love to have namespace that could be imported like
>
> namespace \php\7\function\* as \; // Import all functions to \
> namespace \php\7\function\* as \;
Please no. When we designed namespaces, we explicitly omitted bulk
imports, and the reasons that were true then are still true now. Bulk
imports are a road to a huge mess and return to the same problem
namespaces were created to fix.
--
Stas Malyshev
smalyshev@gmail.com