title: Is it bad practice to have a switch case in a switch case?
body: <p>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 <code>if</code>/<code>else if</code> if I don't need.</p>
  
  <p>Instead of doing some like:</p>
  
  <pre><code>if((this == 1) &amp;&amp; (that == 1)){ //something }
  else if((this == 1) &amp;&amp; (that == 2)){ //something }
  else if((this == 2) &amp;&amp; (that == 3)){ //something }
  </code></pre>
  
  <p>I was thinking along the lines of:</p>
  
  <pre><code>switch(this){
      case 1:
          switch(that){
              case 1:
                  // something
              break;
              ....
          }
      break;
      ....
  }
  </code></pre>
  
  <p>It just looks really wrong to me.  Not wrong in syntax but wrong in terms of proper practice.</p>