On Fri, Jan 29, 2021, at 11:15 AM, Larry Garfield wrote:

> And we're back again.  The RFC has been updated with a steady stream of 
> smaller improvements based on feedback and testing, and is now in its 
> Final Form(tm) (we think).  The only major change worth noting is that 
> we renamed things. :-)
> 
> An enum with no scalar backing is now called a Pure Enum, made up of 
> Pure Cases.  One that does have backing values is called a Backed Enum, 
> made up of Backed Cases.  That change is mainly to allow for future 
> expansion to non-scalar backing static values, should the use case 
> arise.  Reflection was also reworked a bit to make it more logical.
> 
> https://wiki.php.net/rfc/enumerations
> 
> At this point, Ilija and I consider the RFC done and ready for a vote.  
> Baring any major issues being brought up, we plan to start the vote in 
> the first half of next week, probably Tuesday-ish.  If you have any 
> other bug reports or tweaks, please speak now or forever hold your 
> patches.
> 
> --Larry Garfield

Based on feedback from Nikita we've made three last changes to Naming 
Things(tm).

1) IterableEnum is back to "UnitEnum", which is the superset of Pure enums and 
Backed enums.  
2) The reflection classes were renamed accordingly.
3) We clarified that tryFrom() will behave "as you'd expect" if passed an 
incorrect type, given strong vs weak mode.

And a few other inconsequential word tightenings.

Baring any other revelations, voting starts tomorrow.

--Larry Garfield

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to