Re: [RFC] Reserve keywords in PHP 8
| From: | Kalle Sommer Nielsen | Date: | Sat, 13 Jun 2020 19:32:51 +0000 |
| Subject: | Re: [RFC] Reserve keywords in PHP 8 | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110505@lists.php.net to get a copy of this message | ||
Hi
Den lør. 13. jun. 2020 kl. 22.10 skrev Ilija Tovilo <tovilo.ilija@gmail.com>:
>
> 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.
I do not see a point in soft reserving something we don't even know if
it will make it into 8.x. I mean sure you might work on some of them,
but they should be voted on a case by case basis. We did future
reserve somethings in the past for PHP6, e.g. the "b" string prefix
and the "(binary)" cast (for the then non unicode strings). See:
https://3v4l.org/nFJHb 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 don't think we should go down that path again
of soft reserving something before we can guarantee it will be
implemented, something we cannot currently until it is voted in.
--
regards,
Kalle Sommer Nielsen
kalle@php.net