"switch must be exhaustive" -- but it is

could we add a heuristic that can understand unbounded ranges?

switch x
{
case ...0:
    break

case 1:
    break

case 2...:
    break
}

this would solve many of my most common use cases.

2 Likes