Bundled Extension namespace(s)

  115397
July 12, 2021 09:10 pierre.php@gmail.com (Pierre Joye)
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
  115400
July 12, 2021 11:31 cmbecker69@gmx.de ("Christoph M. Becker")
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
  115401
July 12, 2021 11:33 pierre.php@gmail.com (Pierre Joye)
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
>
  115403
July 12, 2021 11:39 cmbecker69@gmx.de ("Christoph M. Becker")
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
  115404
July 12, 2021 12:32 pierre-php@processus.org ("Pierre R.")
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é.