Possible Duplicate:
Is it bad style to use return at the beginning of a function to avoid doing unnecessary work?
Is there any other consideration besides personal taste on returning early or using an if enclosing a long method like in:
foo(bool bar)
{
if(!bar)
{
return;
}
...
}
vs
foo(bool bar)
{
if (bar)
{
...
return;
}
}