Re: [RFC][Dynamic class constant fetch]
| From: | Michał Marcin Brzuchalski | Date: | Fri, 04 Nov 2022 15:50:23 +0000 |
| Subject: | Re: [RFC][Dynamic class constant fetch] | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-118969@lists.php.net to get a copy of this message | ||
Hi Ilija,
pt., 4 lis 2022, 15:26 użytkownik Ilija Tovilo <tovilo.ilija@gmail.com>
napisał:
> Hi everyone
>
> I'd like to propose a simple RFC to introduce looking up class
> constants by name. We have dedicated syntax for basically all other
> language constructs. This RFC aims to get rid of this seemingly
> arbitrary limitation.
>
> https://wiki.php.net/rfc/dynamic_class_constant_fetch
Can it be extended to non class constants and additionally deprecations
plan for constant() function?
I know it may not be the easiest but if we are about completeness and
consistency I think coins the cleanup with planned standard library
function removal would be complete.
Cheers,
Michał Marcin Brzuchalski