title: Why put the constant before the variable in a comparison?
body: <p>I noticed for a while now the following syntax in some of our code:</p>
  
  <pre><code>if( NULL == var){
     //...
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if( 0 == var){
    //...
  }
  </code></pre>
  
  <p>and similar things.</p>
  
  <p>Can someone please explain why did the person who wrote this choose this notation instead of the common <code>var == 0</code> way)?</p>
  
  <p>Is it a matter of style, or does it somehow affect performance?</p>