Re: [RFC] Io\Terminal

From: Date: Mon, 05 Oct 2026 12:52:01 +0000
Subject: Re: [RFC] Io\Terminal
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-132787@lists.php.net to get a copy of this message
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

« previous php.internals (#132787) next »