Hi,
I am proposing to add case ranges to C++. For example, this lets you write:
switch (next_char) {
case '0' ... '9': // ...
}
Find all the details at the link. Happy to hear any thoughts on the matter.
"Empty case ranges such as case -1 ... 0 are valid,
but recommended to be diagnosed.
"
Why is that an empty range?
Re the "A noteworthy quirk of the C2y feature" paragraph, that was documented decades before it got into C2y:
I might be worth linking to that page for the implementation experience talking about the extension.