Re: [RFC] \PHP namespace usage heuristics
| From: | Larry Garfield | Date: | Tue, 07 Jul 2020 22:04:21 +0000 |
| Subject: | Re: [RFC] \PHP namespace usage heuristics | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110869@lists.php.net to get a copy of this message | ||
On Tue, Jul 7, 2020, at 4:22 PM, Miguel Rosales wrote:
> Larry Garfield wrote on 07/07/2020 16:46:
> > This has reached the 2 week mark, but there's not been much discussion. Anyone else
> > want to weigh in?
> >
>
> I guess I'm missing something obvious here, but the RFC says:
>
> > 5. Component or sub-component namespaces MUST use CamelCase naming
> conventions.
>
> But then in the examples you've got e.g. \PHP\DOM\ or \PHP\SPL\... isn't
> that incorrect?
>
> And slightly related, is there any reason to use \PHP instead of \Php?
>
> Sorry if this has been discussed before, I haven't seen it.
>
> Cheers,
> Miguel
Mm, mainly because I added the CamelCase clause late and didn't think about abbreviations.
Whether it should be PHP/XML/DOM or Php/Xml/Dom has been an ongoing debate for at least since PHP
5.0. I have no preference strong enough to die on that hill, though, so whatever voters are willing
to go for I'm good with.
Anyone care enough to offer a bikeshed color?
--Larry Garfield