title: Is it possible to use the instanceof operator in a switch statement?
body: <p>I have a question of using switch case for <code>instanceof</code> object:</p>
  
  <p>For example: my problem can be reproduced in Java:</p>
  
  <pre><code>if(this instanceof A)
      doA();
  else if(this instanceof B)
      doB();
  else if(this instanceof C)
      doC():
  </code></pre>
  
  <p>How would it be implemented using <code>switch...case</code>?</p>