title: Languages that support boolean syntactic sugar
body: <p>There's a certain over-verbosity that I have to engage in when writing certain Boolean expressions, at least with all the languages I've used, and I was wondering if there were any languages that let you write more concisely?  </p>
  
  <p>The way it goes is like this:</p>
  
  <p>I want to find out if I have a <code>Thing</code> that can be either <code>A</code>, <code>B</code>, <code>C</code>, or <code>D</code>.</p>
  
  <p>And I'd like to see if <code>Thing</code> is an <code>A</code> or a <code>B</code>.</p>
  
  <p>The logical way for me to express this is</p>
  
  <pre><code>//1:  true if Thing is an A or a B
  Thing == (A || B)
  </code></pre>
  
  <p>Yet all the languages I know expect it to be written as</p>
  
  <pre><code>//2:  true if Thing is an A or a B
  Thing == A || Thing == B
  </code></pre>
  
  <p>Are there any languages that support 1?  It doesn't seem problematic to me, unless <code>Thing</code> is a Boolean.</p>