title: Is there a way to make Objective-C support a multi-variable switch construct?
body: <p>I was wondering: is there a way to make Objective-C support a multi-variable <code>switch</code> construct?</p>
  
  <p>I mean, very often I have to deal with problems in which the solution depends on a pair of variables instead of a single one. For a long list of single variable values one can use a simple <code>switch/case</code> construct:</p>
  
  <pre><code>switch (var) {
      case 0: ...
      case 1: ...
      default: ...
  }
  </code></pre>
  
  <p>But when you have to deal with the combination of two values you often happen to do something like this:</p>
  
  <pre><code>switch (var1) {
      case 0: 
          switch (var2) {
              case 0: ...
              case 1: ...
          }
      case 1: 
          switch (var2) {
              case 0: ...
              case 1: ...
          }        
      ...
  }
  </code></pre>
  
  <p>And it gets more and more complicated ... What I'd really love to do is something like this:</p>
  
  <pre><code>switch (var1, var2) {
      case (0,0) : ...
      case (1,0) : ...
      case (*,1) : ...
      default: ...
  }
  </code></pre>
  
  <p>that will result in a more simple and readable construct. Is there any solution to support such a structure? Or a slight variation of this one?</p>