# [RFC][VOTE] PHP Namespace in core

- Thread: https://externals.io/message/110239
- Original archive: https://news-web.php.net/php.internals/110239
- Started by michal.brzuchalski@gmail.com on 2020-05-22T06:14:30+00:00
- Messages: 8
- RFC: PHP Namespace in core (Declined) — https://externals.io/rfc/php-namespace-in-core.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #110239 — michal.brzuchalski@gmail.com — 2020-05-22T06:14:30+00:00

URL: https://externals.io/message/110239#110239

Hi Internals,

We have just opened the vote on the PHP namespace in core RFC. The voting
will be
open for two weeks, until 2020-06-05 06:00 UTC.

Link: https://wiki.php.net/rfc/php-namespace-in-core#vote

Cheers,
Michał Marcin Brzuchalski

---

## #110258 — Mark Randall — 2020-05-22T17:30:51+00:00

URL: https://externals.io/message/110239#110258 · In reply to: #110239

> Hi Internals,
> 
> We have just opened the vote on the PHP namespace in core RFC. The voting
> will be
> open for two weeks, until 2020-06-05 06:00 UTC.
> 
> Link: https://wiki.php.net/rfc/php-namespace-in-core#vote
> 
> Cheers,
> Michał Marcin Brzuchalski
> 

I hope that those voting look to the long term, the next 10 to 20 years, 
and the potentially hundreds of new classes that they may bring.

I hope those voting don't choose to place a senseless blanket limitation 
on the options available to all future RFC authors, even before those 
authors have had an opportunity to make their case for their individual 
usage of \PHP.

Should this vote fail, \PHP effectively changes from a reserved 
namespace, to a dead namespace.

Mark Randall

---

## #110259 — Rowan Tommins — 2020-05-22T18:32:00+00:00

URL: https://externals.io/message/110239#110259

> Should this vote fail, \PHP effectively changes from a reserved 
> namespace, to a dead namespace.


I don't see how you get from the text of this RFC to that conclusion.

There are a number of reasons why people who vote against this RFC might 
vote for an alternative, such as:

* They would prefer *more* classes to be in \PHP
* They would prefer fewer classes, but not none
* They would prefer a similar number of classes, but a different definition
* They would prefer a guideline with "should" or "may" rather than "must"
* They like the definition, but would prefer a plan to rename existing 
classes that meet it, for consistency (I don't have a vote, but I might 
well vote No on this basis)
* They would prefer a concrete proposal on how to structure the 
namespace, which this RFC explicitly is not
* They might even prefer your RFC, which is still marked "Under 
Discussion": https://wiki.php.net/rfc/php_namespace_policy


It is possible that "officially declare that we won't use the \PHP 
namespace" would get a majority, but that's not what this vote asks.


Regards,

-- 
Rowan Tommins (né Collins)
[IMSoP]

---

## #110260 — Mark Randall — 2020-05-22T18:47:46+00:00

URL: https://externals.io/message/110239#110260 · In reply to: #110259

> * They might even prefer your RFC, which is still marked "Under 
> Discussion": https://wiki.php.net/rfc/php_namespace_policy

Even though the two RFCs were seperate and created without each others 
knowledge, I don't know how people would feel about holding a similar 
one if this one was voted down.

If this one passed it was my intention to immediately vote on my own, 
which would change the policy to require sub-namespaces and limit it to 
autoloadable components.

Which wouldn't make sense if \PHP was still denied.

---

## #110296 — Ben Ramsey — 2020-05-28T18:53:27+00:00

URL: https://externals.io/message/110239#110296 · In reply to: #110239

> 
> 
> Hi Internals,
> 
> We have just opened the vote on the PHP namespace in core RFC. The voting
> will be open for two weeks, until 2020-06-05 06:00 UTC.
> 
> Link: https://wiki.php.net/rfc/php-namespace-in-core#vote


In light of recent discussions on attribute naming schemes, I’m
concerned that future RFC discussions will be riddled with noisy
back-and-forth messages concerning what and how to name things. I’m not
passing any judgement on these types of conversations, since I agree
that naming things is important, but I also think the use of a
specialized namespace for core symbols is inevitable, and it’s better to
tackle this now than later.

With that in mind, I’m changing my “no” vote to a “yes” for this RFC.

As a side note: one of the reasons I dislike the `\PHP` namespace is
because I think it looks ugly. I don’t know why I have this impression,
and it’s probably the wrong reason to vote “no” on something, but it’s
one of the factors that led me to vote “no.” I’ll probably standardize
on capitalizing the namespace as `\Php` (I tend to follow the Microsoft
.NET capitalization conventions [1]).

Cheers,
Ben


[1]: https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/capitalization-conventions

---

## #110297 — Rowan Tommins — 2020-05-29T10:23:12+00:00

URL: https://externals.io/message/110239#110297 · In reply to: #110296

>
> In light of recent discussions on attribute naming schemes, I’m
> concerned that future RFC discussions will be riddled with noisy
> back-and-forth messages concerning what and how to name things. I’m not
> passing any judgement on these types of conversations, since I agree
> that naming things is important, but I also think the use of a
> specialized namespace for core symbols is inevitable, and it’s better to
> tackle this now than later.
>


The problem with this RFC, to me, is that it doesn't actually prevent any
of those noisy back-and-forth discussions.

With this policy in place, it would still be a topic of debate on every RFC:

* Whether the functionality is "tightly coupled to the PHP engine", just as
we used to debate whether something was "a feature affecting the language
itself" and therefore require a higher voting threshold
* If the answer is "no", should a new feature go into the PHP\ namespace
anyway, as implied by the Future Scope section?
* Should the class be _directly_ in PHP\ or some new or existing
"project"-level sub-namespace?
* Should *that* level be flat, or be organised into a further hierarchy?
* If there's a named project level, should the class name repeat that name
(PHP\Attributes\Jit vs PHP\Attributes\JitAttribute)?

...and so on. To use a hackneyed metaphor, it's a general agreement that
the bikeshed needs painting, and we'll decide the colour later.

No naming convention can perfectly cover every future situation, and
agreeing the initial text will be painful, but I think a concrete policy
with clear definitions and examples is both possible and necessary. A few
of us started brainstorming some ideas in Room 11 a few days ago; I think
it needs someone to don their flame-proof armour and edit together a first
draft so that we can discuss specifics.

Regards,
-- 
Rowan Tommins
[IMSoP]

---

## #110340 — michal.brzuchalski@gmail.com — 2020-06-03T07:49:55+00:00

URL: https://externals.io/message/110239#110340 · In reply to: #110239

pt., 22 maj 2020 o 08:14 Michał Brzuchalski <michal.brzuchalski@gmail.com>
napisał(a):

> Hi Internals,
>
> We have just opened the vote on the PHP namespace in core RFC. The voting
> will be
> open for two weeks, until 2020-06-05 06:00 UTC.
>

Heads-up. We will end the vote soon.
If anyone may have not decided yet or would like to change their mind, this
is the last moment.
You're the one who rocks here!

Cheers,
Michał Brzuchalski

---

## #110368 — michal.brzuchalski@gmail.com — 2020-06-04T11:57:30+00:00

URL: https://externals.io/message/110239#110368 · In reply to: #110340

śr., 3 cze 2020 o 09:49 Michał Brzuchalski <michal.brzuchalski@gmail.com>
napisał(a):

> pt., 22 maj 2020 o 08:14 Michał Brzuchalski <michal.brzuchalski@gmail.com>
> napisał(a):
>
> > […]
>
> Heads-up. We will end the vote soon.
> If anyone may have not decided yet or would like to change their mind,
> this is the last moment.
> You're the one who rocks here!
>

Voting is now closed.
The proposed RFC was rejected with 19 votes in favour and 24 against.
Thank you all for participating.

Cheers,
Michał Brzuchalski
