Re: [PHP-DEV] Re: [RFC][Dynamic class constant fetch]

2022-12-08 Thread Ilija Tovilo
Hi Nicolas >> > https://wiki.php.net/rfc/dynamic_class_constant_fetch >> > > I'm wondering about this: > > > This RFC proposes no change in the interaction between class constant > > fetches and the null-coalescing operator ??. That is, Foo::{$bar} ?? null; > > will throw an Error if the given

Re: [PHP-DEV] Re: [RFC][Dynamic class constant fetch]

2022-12-08 Thread Nicolas Grekas
Hi Ilija, > 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. > > > >

[PHP-DEV] Re: [RFC][Dynamic class constant fetch]

2022-12-08 Thread Ilija Tovilo
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