Re: [RFC] Namespaced in bundled extensions

From: Date: Fri, 26 Feb 2021 11:17:59 +0000
Subject: Re: [RFC] Namespaced in bundled extensions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-113281@lists.php.net to get a copy of this message
Thank you for this RFC, Nikita. This is a necessary first step in the right
direction.

Even though this is out of scope for this RFC, I hope that moving standard
functions to namespaces will be an opportunity to fix inconsistencies in
parameter order, like:

array_map($callback, array)
array_filter($array, $callback)

and not just an alias under a namespace!

 — Benjamin

On Thu, 25 Feb 2021 at 21:26, Nikita Popov <nikita.ppv@gmail.com> wrote:

> Hi internals,
>
> The question of namespaces in the stdlib has been coming up a lot recently,
> so I'd like to present my own stab at resolving this question:
>
> https://wiki.php.net/rfc/namespaces_in_bundled_extensions
>
> Relative to a number of previous (declined) proposals, the main difference
> is that I do not propose a top-level "PHP\" vendor namespace, and instead
> recommend the use of "ExtName\", in line with existing practice for
> extensions. I believe this addresses the primary concern with previous
> proposals.
>
> Regards,
> Nikita
>


Thread (19 messages)

« previous php.internals (#113281) next »