if (true)
foo();
else
bar();
This looks prettier to my eyes than if(true){
foo();
} else {
bar();
}
However, I might not be the last person to touch the code. My coworker might come later and add: if (true)
foo();
else
bar();
baz();
And hence the indent problem.