Re: [RFC] Treat namespaced names as single token, relax reserved keyword restrictions
| From: | Nikita Popov | Date: | Thu, 18 Jun 2020 07:38:57 +0000 |
| Subject: | Re: [RFC] Treat namespaced names as single token, relax reserved keyword restrictions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110647@lists.php.net to get a copy of this message | ||
On Thu, Jun 18, 2020 at 12:06 AM Jakob Givoni <jakob@givoni.dk> wrote:
> On Tue, Jun 16, 2020 at 10:52 AM Nikita Popov <nikita.ppv@gmail.com>
> wrote:
> >
> > Hi internals,
> >
> > Inspired by the recent discussion on reserved keyword reservation, I'd
> like
> > to propose the following RFC:
> >
> > https://wiki.php.net/rfc/namespaced_names_as_token
> >
> > This RFC makes two related changes: Treat namespaced names as a single
> > token, which enables use of reserved keywords inside them. And remove
> > reserved keyword restrictions from various declarations.
> >
> > The RFC comes with a small backwards compatibility break related to names
> > that include whitespace, but will hopefully reduce the backwards
> > compatibility impact of future reserved keyword additions.
> >
> > Regards,
> > Nikita
>
> Love it, thanks Nikita!
>
> In a mail that probably went to everyone's spam folder, I asked for
> opinions on allowing use of .\Foo as an alternative to Foo in the
> current namespace, thus reducing friction with reserved keywords even
> more. Any thoughts on that now?
>
How would .\Foo be different from the currently existing namespace\Foo?
(Note that "namespace" here is to be taken literally, not as "put the
current namespace here").
Nikita