Hi

On 2026-10-05 13:32, Ilia wrote:
Also, adding a Key case later breaks any match() without a default arm,
so add Insert and Shift+Tab now.

This is a textbook case of a non-exhaustive enum. I have a very rough draft RFC in https://wiki.php.net/rfc/non_exhaustive_marker that would allow for a clear indicator of such enums. I am not currently working on it (and I'm not sure between interface and attribute). If you (or someone else) wants to pick that up and build a proper design around it, please let me know and I'm happy to add you as a coauthor and let you manage the RFC :-)

Best regards
Tim Düsterhus

Reply via email to