On 17/02/2021 17:51, Ben Ramsey wrote:
On Feb 17, 2021, at 11:48, Chase Peeler <chasepee...@gmail.com> wrote:

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]

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

Reply via email to