There is was used as an optimization. There are certain kinds of comparisons that the compiler can optimize. Exact comparisons of simple values. They are much easier to identify and optimize when they are using a different syntax.
The optimization could not take place if it was a range, so there was no reason to add that.
My personal opinion is that you should almost always use if rather than switch.
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Joined: Aug 08, 2007
Not you can't do this. the case of switch can't have condition for test.