title: Why are logical assignment (&=) operators disallowed in Typescript?
body: <p>With the following code:</p>
  
  <pre><code>var x:boolean = true;
  
  x &amp;= false;
  </code></pre>
  
  <p>Results in <code>error TS2447: The '&amp;=' operator is not allowed for boolean types. Consider using '&amp;&amp;' instead.</code></p>
  
  <p>I've looked around but can't find a reason why, there's a PR to make the error what it is: <a href="https://github.com/Microsoft/TypeScript/issues/712" rel="noreferrer">https://github.com/Microsoft/TypeScript/issues/712</a> but still can't find the underlying reason for it.</p>
  
  <p>Can someone clarify?</p>