Re: [RFC] Reserve keywords in PHP 8

From: Date: Mon, 15 Jun 2020 14:12:26 +0000
Subject: Re: [RFC] Reserve keywords in PHP 8
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110513@lists.php.net to get a copy of this message
On Mon, Jun 15, 2020 at 2:17 AM Marco Pivetta <ocramius@gmail.com> wrote: > > Hey Ilija, > > On Sat, Jun 13, 2020 at 9:10 PM Ilija Tovilo <tovilo.ilija@gmail.com> wrote: > > > Hi internals > > > > I created a new RFC for reserving keywords we might need in PHP 8.x > > versions. > > https://wiki.php.net/rfc/reserve_keywords_in_php_8 > > > > Let me know if there's something you'd like to work on that will > > require a keyword and I will add it to the list. The keywords will > > most likely be voted on separately. > > > > This seems messy now, mostly because the enum symbol is very > much in use > in very stable packages: > > * https://packagist.org/packages/marc-mabe/php-enum/stats > * https://packagist.org/packages/myclabs/php-enum/stats > > Greets, > > Marco Pivetta > > http://twitter.com/Ocramius > > http://ocramius.github.com/ How viable would be a compilation warning when a T_STRING is enum? I'm sure for the most part authors would much rather have enums in core than to maintain their own, though I haven't looked at implementations to see how "exotic" they are. If it's a warning then we can manage until it's implemented and the software can continue working but nobody will have to invest more time into it.

« previous php.internals (#110513) next »