title: Return early or use big if in methods?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4548027/is-it-bad-style-to-use-return-at-the-beginning-of-a-function-to-avoid-doing-unne">Is it bad style to use return at the beginning of a function to avoid doing unnecessary work?</a>  </p>
  </blockquote>
  
  
  
  <p>Is there any other consideration besides personal taste on returning early or using an if enclosing a long method like in: </p>
  
  <pre><code>foo(bool bar)
  {
      if(!bar)
      {
         return; 
      }
  
      ...
  }
  </code></pre>
  
  <h2>vs</h2>
  
  <pre><code>foo(bool bar)
  { 
      if (bar)
      {
         ...
  
         return;
      }
  }
  </code></pre>