I'm interested in where this variation of the pure block style stems from. When I say putting the else
directly after the end of the if block I mean...
if ( foo ) {
DoThis();
DoThat();
} else {
DoThing();
}
I noticed that the Google C++ Style Guidelines use this, but how often do you see other developers using it? Also, where does it stem from? Obviously someone decided to take code like this...
if ( foo ) {
DoThis();
DoThat();
}
else {
DoThing();
}
and cut down the space, thinking it was more readable I suppose (I'm offering no opinion. I don't want a religious war. I just want to know where the style stems from.)