[PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread tyson andre
My previous message can be seen at https://news-web.php.net/php.internals/107887 (marc.info seems to show it as base 64 encoded text.) It links to a PR https://github.com/php/php-src/pull/4951 implementing this >A more cosmetic consideration is that the more generic the syntax looks, >the more

Re: [PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread Rowan Tommins
On 28/11/2019 18:52, tyson andre wrote: An opt-in mechanism is certainly easier to migrate to, but it would be a shame if every PHP file in 10 years time included a line like this: use function *; // don't know what this does, but apparently it's good for performance ¯\_(ツ)_/¯ I'm not sure

[PHP-DEV] Re: Opt-in "use function *;" for skipping check for function/const in alternate namespace

2019-11-28 Thread tyson andre
I implemented a PR for this if you wanted to know how this will work and how edge cases will be handled. https://github.com/php/php-src/pull/4951 > I was assuming that the ultimate goal was to remove (after deprecation) the > fallback to global namespace. > In that regard, the `use function *`