Re: [RFC][DISCUSSION] Deprecation of fallback to root scope
| From: | Christoph M. Becker | Date: | Wed, 07 Feb 2018 15:20:38 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Deprecation of fallback to root scope | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-101799@lists.php.net to get a copy of this message | ||
On 07.02.2018 at 15:02, Rowan Collins wrote:
> - PHP 7.3: Add syntax to explicitly reference functions and constants in
> the current namespace, such as .\foo or this\foo
It is already possible to use the
namespace keyword for this, see
<https://3v4l.org/bikjE>.
> - Slightly uglier syntax.
IMHO, .\foo is very ugly, and namespace\foo is not much better.
--
Christoph M. Becker