Is it bad practice to have a switch case in a switch case? If so, what are alternatives? I don't really want to use if
/else if
if I don't need.
Instead of doing some like:
if((this == 1) && (that == 1)){ //something }
else if((this == 1) && (that == 2)){ //something }
else if((this == 2) && (that == 3)){ //something }
I was thinking along the lines of:
switch(this){
case 1:
switch(that){
case 1:
// something
break;
....
}
break;
....
}
It just looks really wrong to me. Not wrong in syntax but wrong in terms of proper practice.