How old do you think it will take you to write almost 300 million cases
? Have you noticed the impracticality of this? Even if there are only a few thousand, does it fit into the source code file that the compiler is able to process?
Unless you have a pattern that lets you put this in a loop, which already eliminates case
.
As the cat commented, if you have many, and by many you understand a few dozen or at most hundreds, you are doing something wrong. The compiler may know how to handle, and deals with thousands, but it does not make sense to do so. Most likely this code gets better computed using a loop or array (you have some questions that tell you about it in other languages here and here ).
Do not worry about it, case
was not created to deal with this hypothetical situation, it becomes useless before the compiler squeaks.