On 2025-07-03 07:56, Gina P. Banyard wrote:
Hello internals,


Some should be non-controversial, others a bit more.
If such, they might warrant their own dedicated RFC, or be dropped from the 
proposal altogether.

Best regards,

Gina P. Banyard

Just skimming and saw

> Deprecate using values of type null and bool as array offsets and when calling array_key_exists()

The discussion that follows says what is wrong with null (and I agree with that), but not why bool should be deprecated as well (in fact it mentions that bool gets cast to int).

It's just that I've more than once found it self-documenting to use a bool as an array offset because I wanted to partition an array into two according to a predicate - e.g., $partition[true] contains those elements that satisfy the predicate. Especially when the question of which of those two partitions I want is itself a runtime boolean decision.

Reply via email to