title: Handling boolean function in an if statement
body: <p>I have inhereted some code and I see somthing curious in there:</p>
  
  <pre><code>if (true == someFuncThatReturnsBool())
  {
     // Do somthing
  }
  
  bool someFuncThatReturnsBool()
  {
      bool retVal = false;
      // .... do some stuff
  
      return retVal;
  }
  </code></pre>
  
  <p>In the "if" statement they have used <code>true == someFuncThatReturnsBool()</code> as a boolean expression, where for boolean values I would normally do:</p>
  
  <pre><code>if (someFuncThatReturnsBool())
  {
     // Do somthing
  }
  </code></pre>
  
  <p>What, if any, is the difference to the generated code?
  Is there any advantage to using the "true ==" notation, other then perhaps for some clarity that the function returns a boolean?... type checking??, personally I can't see any advantage...</p>
  
  <p>Thanks :)</p>