Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-04-15 Thread Nikita Popov
On Wed, Apr 14, 2021 at 5:39 PM Larry Garfield wrote: > On Wed, Apr 14, 2021, at 9:52 AM, Nikita Popov wrote: > > > >> > All symbols defined in the extension should be part of the top-level > > >> namespace or a sub-namespace. > > >> > > >> This should be clarified - do you mean **the

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-04-14 Thread Larry Garfield
On Wed, Apr 14, 2021, at 9:52 AM, Nikita Popov wrote: > >> > All symbols defined in the extension should be part of the top-level > >> namespace or a sub-namespace. > >> > >> This should be clarified - do you mean **the extension's** top-level > >> namespace (e.g. OpenSSL) instead of the global

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-04-14 Thread Nikita Popov
On Wed, Apr 14, 2021 at 4:18 PM Nikita Popov wrote: > On Mon, Apr 5, 2021 at 8:05 PM tyson andre > wrote: > >> > > 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: >> > > >> > >

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-04-14 Thread Nikita Popov
On Mon, Apr 5, 2021 at 8:05 PM tyson andre wrote: > > > 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-04-05 Thread tyson andre
> > 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 >

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-22 Thread Mike Schinkel
> On Mar 22, 2021, at 5:45 AM, Nikita Popov wrote: > > On Fri, Mar 19, 2021 at 7:28 PM Mike Schinkel > wrote: > > On Feb 25, 2021, at 3:26 PM, Nikita Popov > > wrote: > > > > Hi internals, > > > > The question of namespaces in the

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-22 Thread Nikita Popov
On Fri, Mar 19, 2021 at 7:28 PM Mike Schinkel wrote: > > On Feb 25, 2021, at 3:26 PM, Nikita Popov 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: > > > >

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread Mike Schinkel
> On Mar 19, 2021, at 2:44 PM, Christoph M. Becker wrote: > > On 19.03.2021 at 19:28, Mike Schinkel wrote: > >> The registration process would be as simple as submitting a PR that includes >> the requested namespace added to both the README.md and the namespaces.json >> file along with a link

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread Christoph M. Becker
On 19.03.2021 at 19:28, Mike Schinkel wrote: > The registration process would be as simple as submitting a PR that includes > the requested namespace added to both the README.md and the namespaces.json > file along with a link for more information. > > There would not be any approval process

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread Mike Schinkel
> On Feb 25, 2021, at 3:26 PM, Nikita Popov 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread Christoph M. Becker
On 19.03.2021 at 15:13, Nikita Popov wrote: > I'd love to have some more feedback on this RFC before opening voting. > There has been a lot of discussion beforehand, but only a couple responses > to this RFC... I very much like this pragmatic approach, which also matches most of the already

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread G. P. B.
On Thu, 25 Feb 2021 at 20:26, Nikita Popov 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread Nikita Popov
On Fri, Mar 19, 2021 at 3:04 PM tyson andre wrote: > Hi Nikita Popov, > > > 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 > > > >

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-03-19 Thread tyson andre
Hi Nikita Popov, > 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-02-26 Thread Pierre
Le 25/02/2021 à 21:26, Nikita Popov a écrit : 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-02-26 Thread Benjamin Morel
> > Maybe off-topic, but I don't think you could "fix" them: > for array_map, the array is variadic-like, so must be last; > for array_filter, the callback is optional, so must be after the array. > (Correct me if I'm wrong.) > > -- > Guilliam Xavier > Good point. Then that would be an

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-02-26 Thread Guilliam Xavier
On Fri, Feb 26, 2021 at 12:18 PM Benjamin Morel wrote: > 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

Re: [PHP-DEV] [RFC] Namespaced in bundled extensions

2021-02-26 Thread Benjamin Morel
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)

[PHP-DEV] [RFC] Namespaced in bundled extensions

2021-02-25 Thread Nikita Popov
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