title: Chained inequality notation in programming languages
body: <p>Is there a programming language that supports chained notation a &lt; b &lt; c to be used instead of a &lt; b and b &lt; c in conditional statements?</p>
  
  <p>Example:</p>
  
  <ol>
  <li>if ( 2 &lt; x &lt; 5 )</li>
  <li>if ( 2 &lt; x &amp;&amp; x &lt; 5 )</li>
  </ol>
  
  <p>First statementlooks better to me, it's easier to understand and the compiler could use transitivity property to warn about mistakes (e.g. 5 &lt; x &lt; 2 would give a warning).</p>