Until a couple weeks ago, I always put my
else statements on the same line as the closing brace of the preceeding
if statement. This style has always seemed cleaner and more logical to me. I’d also guess that it’s the most common way of writing an if/else1.
Sure, we’re now ‘wasting’ an extra line, but we’ve gained the ability to comment out the entire
else statement quickly. It’s also easier to move the entire
else block around if you’re using a text editor like Vim that operates on entire lines.