Re: [RFC] [Discussion] Add get_declared_enums() function
| From: | Gina P. Banyard | Date: | Thu, 03 Oct 2024 12:01:30 +0000 |
| Subject: | Re: [RFC] [Discussion] Add get_declared_enums() function | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-125739@lists.php.net to get a copy of this message | ||
On Tuesday, 1 October 2024 at 23:45, Juliette Reinders Folmer
<php-internals_nospam@adviesenzo.nl> wrote:
> L.S.,
>
> After the earlier discussion [1] regarding this topic in August, it is our pleasure to present
> the RFC to add a
get_declared_enums() function to PHP for
> discussion.
>
> https://wiki.php.net/rfc/get_declared_enums
>
> We look forward to your feedback and hope for a constructive discussion.
>
> Smile,
> Ayesh and Juliette
>
> 1: https://externals.io/message/124937#124937
The RFC, and its course of action, makes total sense to me.
As a counterpoint to the argument presented on the list that Enums should still be returned by
get_declared_list() because they are "classes":
Interfaces and traits are also "classes" internally, and yet they are not returned.
We make a distinction in userland, and this should be followed by the provided functions.
Best regards,
Gina P. Banyard