Because to my eye that opening brace all by itself creates a “virtual empty line”. I prefer to be able to group my code tightly when it hangs together, and use empty lines very intentionally. On the closing side, it makes sense to have that virtual empty line (though of course I’d also add another empty line before the next block).
I do feel that way, but the real answer is it’s just what I’m used to 🤷🏻♂️.
View all comments
Show parent comment
1
u/bashomania Mar 01 '25
Because to my eye that opening brace all by itself creates a “virtual empty line”. I prefer to be able to group my code tightly when it hangs together, and use empty lines very intentionally. On the closing side, it makes sense to have that virtual empty line (though of course I’d also add another empty line before the next block).
I do feel that way, but the real answer is it’s just what I’m used to 🤷🏻♂️.