The vote on the Enumerations RFC is hereby opened. It will run until 17 February 2021.
https://wiki.php.net/rfc/enumerations
Vote now, or forever hold your memory allocations.
--
Larry Garfield
larry@garfieldtech.com
The vote on the Enumerations RFC is hereby opened. It will run until 17 February 2021.
The no vote for this is slightly higher than I was expecting. I
understand that some people think enums should be 'just consts' and
some people might not like using objects for the implementation.
Other than those two, does anyone want to mention any other big
downsides that weren't raised during the conversation?
cheers
Dan
Ack
The vote on the Enumerations RFC is hereby opened. It will run until
17 February 2021.https://wiki.php.net/rfc/enumerations
Vote now, or forever hold your memory allocations.
The Enum vote has now closed. Final results:
For: 44
Against: 7
Approval rate: 86%
The Enum RFC has been approved. Ilija is still fixing up some bugs and edge cases in the code itself but it should be merged soon.
Thank you to everyone for your feedback, support, and votes over the past few weeks! I would enumerate you all individually, but there's a lot of you and it would take up a lot of memory... :-)
--Larry Garfield
Congratulations ? and thank you Larry and Ilija, this will be a great
addition to PHP!
— Benjamin
The vote on the Enumerations RFC is hereby opened. It will run until
17 February 2021.https://wiki.php.net/rfc/enumerations
Vote now, or forever hold your memory allocations.
The Enum vote has now closed. Final results:
For: 44
Against: 7
Approval rate: 86%The Enum RFC has been approved. Ilija is still fixing up some bugs and
edge cases in the code itself but it should be merged soon.Thank you to everyone for your feedback, support, and votes over the past
few weeks! I would enumerate you all individually, but there's a lot of
you and it would take up a lot of memory... :-)--Larry Garfield
--
To unsubscribe, visit: https://www.php.net/unsub.php
Le 17/02/2021 à 15:30, Larry Garfield a écrit :
The Enum vote has now closed. Final results:
For: 44
Against: 7
Approval rate: 86%The Enum RFC has been approved. Ilija is still fixing up some bugs and edge cases in the code itself but it should be merged soon.
Thank you to everyone for your feedback, support, and votes over the past few weeks! I would enumerate you all individually, but there's a lot of you and it would take up a lot of memory... :-)
--Larry Garfield
That's great ! Thank you very much for all this work !
Regards,
--
Pierre
The Enum RFC has been approved.
Thank you and Ilija so much for putting in the effort to make such a
carefully thought-through proposal, and I'm really looking forward to
being able to use it.
I realise not everyone agrees with the approach, but am hopeful that it
can be expanded on in future proposals to add a lot of power to the
language.
Regards,
--
Rowan Tommins
[IMSoP]
On Wed, Feb 17, 2021 at 10:09 AM Rowan Tommins rowan.collins@gmail.com
wrote:
The Enum RFC has been approved.
Thank you and Ilija so much for putting in the effort to make such a
carefully thought-through proposal, and I'm really looking forward to
being able to use it.I realise not everyone agrees with the approach, but am hopeful that it
can be expanded on in future proposals to add a lot of power to the
language.Regards,
--
Rowan Tommins
[IMSoP]--
To unsubscribe, visit: https://www.php.net/unsub.php
Glad to see this passed. I definitely would have voted for it if I had a
vote. The only thing I wish had been included was the ability to use them
as array keys, but definitely don't think the lack of that would be a
reason to vote against it - especially since the possibility is still open
in the future and adding it wouldn't cause any BC issues.
--
Chase Peeler
chasepeeler@gmail.com
On Wed, Feb 17, 2021 at 10:09 AM Rowan Tommins rowan.collins@gmail.com
wrote:The Enum RFC has been approved.
Thank you and Ilija so much for putting in the effort to make such a
carefully thought-through proposal, and I'm really looking forward to
being able to use it.I realise not everyone agrees with the approach, but am hopeful that it
can be expanded on in future proposals to add a lot of power to the
language.Glad to see this passed. I definitely would have voted for it if I had a
vote. The only thing I wish had been included was the ability to use them
as array keys, but definitely don't think the lack of that would be a
reason to vote against it - especially since the possibility is still open
in the future and adding it wouldn't cause any BC issues.
There’s an RFC for that. ;-)
https://wiki.php.net/rfc/object_keys_in_arrays
Cheers,
Ben
On Wed, Feb 17, 2021 at 10:09 AM Rowan Tommins rowan.collins@gmail.com
wrote:The Enum RFC has been approved.
Thank you and Ilija so much for putting in the effort to make such a
carefully thought-through proposal, and I'm really looking forward to
being able to use it.I realise not everyone agrees with the approach, but am hopeful that it
can be expanded on in future proposals to add a lot of power to the
language.Glad to see this passed. I definitely would have voted for it if I had a
vote. The only thing I wish had been included was the ability to use them
as array keys, but definitely don't think the lack of that would be a
reason to vote against it - especially since the possibility is still
open
in the future and adding it wouldn't cause any BC issues.There’s an RFC for that. ;-)
https://wiki.php.net/rfc/object_keys_in_arrays
Cheers,
Ben
If that were to not pass, though, it seems supporting enum cases as keys
would be worth exploring. Fully support allowing all objects as keys though.
--
Chase Peeler
chasepeeler@gmail.com
If that were to not pass, though, it seems supporting enum cases as keys would be worth exploring. Fully support allowing all objects as keys though.
Others, please correct me if I’m wrong, but I believe each enum case is already an object.
Cheers,
Ben
If that were to not pass, though, it seems supporting enum cases as keys would be worth exploring. Fully support allowing all objects as keys though.
Others, please correct me if I’m wrong, but I believe each enum case is already an object.
I think what Chase meant was that if we don't want to allow all
objects as keys, we could allow a specific subset, namely Enum cases.
The implementation would be similar, but deliberately limiting the scope
might avoid some undesirable edge cases and side effects.
Regards,
--
Rowan Tommins
[IMSoP]
If that were to not pass, though, it seems supporting enum cases as keys would be worth exploring. Fully support allowing all objects as keys though.
Others, please correct me if I’m wrong, but I believe each enum case is already an object.
I think what Chase meant was that if we don't want to allow all objects as keys, we could allow a specific subset, namely Enum cases.
The implementation would be similar, but deliberately limiting the scope might avoid some undesirable edge cases and side effects.
Sorry. When I read “were to not pass,” my brain missed the “not” part. :-)
Cheers,
Ben