Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-15 Thread Alex
Maybe it would be good to talk to the developers of that package? They might have some valuable input on how to design a built-in `enum` feature. It might also help them plan out a migration path. On Mon, Jun 15, 2020 at 11:18 AM Ilija Tovilo wrote: > > Hi Marco > > >> I created a new RFC for r

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-15 Thread Levi Morrison via internals
On Mon, Jun 15, 2020 at 2:17 AM Marco Pivetta wrote: > > Hey Ilija, > > On Sat, Jun 13, 2020 at 9:10 PM Ilija Tovilo 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 > > > > L

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-15 Thread Ilija Tovilo
Hi Marco >> 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 > > This seems messy now, mostly because the `enum` symbol is very much in use in > very stable packages: > > * https://packagist.org/packages/marc-mabe

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-15 Thread Marco Pivetta
Hey Ilija, On Sat, Jun 13, 2020 at 9:10 PM Ilija Tovilo 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

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-15 Thread Ilija Tovilo
Hi Kalle, hi Matthew > We stopped trying to future proof code by soft > reserving after PHP6 turned out to be nothing and most of the features > were ported to PHP5.3. I wanted to reduce resistance to the RFC I'm planning because of BC breaks in a minor version. For this reason I would personally

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-13 Thread Matthew Brown
> I do not see a point in soft reserving something we don't even know if > it will make it into 8.x. An enum implementation seems like something that almost certainly will make it into the language in the next 4 years, given PHP’s gradual adoption of features that already exist Hack (e.g. att

Re: [PHP-DEV] [RFC] Reserve keywords in PHP 8

2020-06-13 Thread Kalle Sommer Nielsen
Hi Den lør. 13. jun. 2020 kl. 22.10 skrev Ilija Tovilo : > > 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