> On Jan 1, 2020, at 11:31 PM, Mark Randall <marand...@php.net> wrote:
> In future, I think the optimal solution is opt-in deprecating fallback to the 
> root namespace using a declare. We might eventually benefit from versioned 
> "libraries" of functions that can be imported in one command which would 
> solve many-a-future-problem by itself.

+1 to that.  

Especially if there is a mechanism to define functions from other people's code 
to be included in those "libraries", such as the functions in the WordPress API.

> Id like to see nikic/scalar_objects added to the core in 8.0, that would 
> offer non-procedural (and therefore non-namespaced) access to many of the 
> most common global functions (strings, arrays etc). In turn, that would allow 
> developers to limit the number of use \... statements.

And +1000 to that!

-Mike

Reply via email to