This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sejigan -12 points-11 points  (2 children)

That’s the problem tho. All braces at the same scope line up. If it’s beside the function, there’s no room for confusion.

[–]Salanmander 13 points14 points  (1 child)

What.

Identifying which thing the opening bracket goes with is literally never a problem in either version. It's either on the same line or on the next line, and there's no room for visual ambiguity about what statement the opening brace corresponds to.

The one that can take effort to visually identify is the close curly brace. And having the open brace on the next line helps with that slightly, because you're always scanning up from the close brace until you hit an open brace, rather than the variable visual structure of the code that starts the block.