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

From: Date: Wed, 06 Jul 2022 19:02:25 +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-118211@lists.php.net to get a copy of this message
> Am 01.07.2022 um 15:03 schrieb Ilija Tovilo <tovilo.ilija@gmail.com>: > > 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 this introduces a special case in const expressions that is hard to explain and seeing it in the wild will give code readers ideas on property access in consts that will never be generalizable. Imho Const expressions should soley be about declaring state not traversing it. > > Voting closes on 2022-07-15. > > Ilija > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >

« previous php.internals (#118211) next »