Bundled Extension namespace(s)

php.internals

Pierre Joye

5 years ago
Good afternoon internals, What is the status of the extension namespace RFC (https://wiki.php.net/rfc/namespaces_in_bundled_extensions)? In the near future, I plan to work a bit on the ext/gd one. Adding quite a few things I have in my queue for too long. Check https://github.com/libgd/libgd/issues/705 if interested. I am not sure about the base NS to be used. if I follow the RFC, it should be Image\. What do you think? Best,
-- Pierre @pierrejoye | http://www.libgd.org

Christoph Becker

5 years ago
On 12.07.2021 at 11:10, Pierre Joye wrote:
> What is the status of the extension namespace RFC > (https://wiki.php.net/rfc/namespaces_in_bundled_extensions)? > > In the near future, I plan to work a bit on the ext/gd one. Adding > quite a few things I have in my queue for too long. Check > https://github.com/libgd/libgd/issues/705 if interested. > > I am not sure about the base NS to be used. if I follow the RFC, it > should be Image\.
The RFC states: | The top-level namespace should match the extension name (apart from | casing). So shouldn't the namespace rather be Gd or GD? Christoph

Pierre Joye

5 years ago
On Mon, Jul 12, 2021, 6:31 PM Christoph M. Becker <cmbecker69@gmx.de> wrote:
> On 12.07.2021 at 11:10, Pierre Joye wrote: > > > What is the status of the extension namespace RFC > > (https://wiki.php.net/rfc/namespaces_in_bundled_extensions)? > > > > In the near future, I plan to work a bit on the ext/gd one. Adding > > quite a few things I have in my queue for too long. Check > > https://github.com/libgd/libgd/issues/705 if interested. > > > > I am not sure about the base NS to be used. if I follow the RFC, it > > should be Image\. > > The RFC states: > > | The top-level namespace should match the extension name (apart from > | casing). >
Ah I missed that part, I was looking at examples :)
> So shouldn't the namespace rather be Gd or GD? >
I would go with Gd, double uppercase is "harder" to type :) best, Pierre

Christoph Becker

5 years ago
On 12.07.2021 at 13:33, Pierre Joye wrote:
> I would go with Gd, double uppercase is "harder" to type :)
+1. That also matches GdImage and GdFont. Christoph

Pierre

5 years ago
Le 12 juillet 2021 13:39:50 GMT+02:00, "Christoph M. Becker" <cmbecker69@gmx.de> a écrit :
>On 12.07.2021 at 13:33, Pierre Joye wrote: > >> I would go with Gd, double uppercase is "harder" to type :) > >+1. That also matches GdImage and GdFont. > >Christoph > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: https://www.php.net/unsub.php
Hello, I am not fond of 2-letters namespace names, juste saying it for the sake of saying it. Does the policy cover that ?
-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.