Re: [RFC][Voting] Fetch properties of enums in const expressions

From: Date: Wed, 06 Jul 2022 15:06:48 +0000
Subject: Re: [RFC][Voting] Fetch properties of enums in const expressions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-118210@lists.php.net to get a copy of this message
Hi Ilija, pt., 1 lip 2022 o 15:03 Ilija Tovilo <tovilo.ilija@gmail.com> napisał(a): > Hi everyone > > I opened voting for the "Fetch properties of enums in const expressions" > RFC. > https://wiki.php.net/rfc/fetch_property_in_const_expressions I voted NO because the originating problem this RFC tries to solve described in https://github.com/php/php-src/issues/8344 is easily solvable by aither 1. introducing a simple constant string value used in both places the enum case and as an attribute value, 2. changing the attribute argument to enum instead. Personally, I'd see using enums as array keys feature first instead (which the RFC reminds in its introductory section as not possible yet) before we start improving places around enums. Best regards, Michał Marcin Brzuchalski

« previous php.internals (#118210) next »