Re: [RFC] Reserve keywords in PHP 8
| From: | Matthew Brown | Date: | Sun, 14 Jun 2020 02:38:12 +0000 |
| Subject: | Re: [RFC] Reserve keywords in PHP 8 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-110506@lists.php.net to get a copy of this message | ||
> 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.
attributes, constructor property promotion).
While there have been many attempts to emulate enums in the language, none have the simplicity nor
ergonomics of actual native enum support.