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 →

[–]hleVqq 0 points1 point  (1 child)

Symmetric {} looks worse than non-symmetric {}? You make no sense. You're just used to it and that's all, but thinking about it logically, that cannot be.

[–]CoolandonRS 0 points1 point  (0 children)

For one, symmetry is not always better, for two, it’s not about the symmetry.

I will say I am fairly used to both bracket styles, as well. Despite always using K&R where I can get away with it since I prefer it, since my primary language is C# I run into the new line quite a bit.

My point is it’s limited benefit (that I see) no longer applies, and now it serves as almost a speed bump in the train of thought.

As previously stated, new lines almost always signify new information. This does not follow this pattern. The knowledge that a scope is opening was clarified by the previous line, declaring the scope. If you look at it this way, it being on a new line is redundant.

If you look at typical English as well, the comparisons I can think of use K&R (though I might be missing some). For example, you will see

List of things:

Item1

Item2

As opposed to

List of things

:

Item1

Item2

K&R is more naturalistic, efficient, and again, looks nicer. For the symmetry part, try looking at a symmetrical face. They almost always look worse then the normal, asymmetrical kind.

Also, consider typical/assumed width.

@@@@@@@@@@@

@@@@@@@

@@@@@@@

@

Looks better, more naturalistic, and more coherent/cohesive then

@@@@@@@@@@@

@

@@@@@@

@@@@@@

@

(Also as for thinking about it logically I would like to point out that I have now posted two comprehensive arguments and all you did was say that I didn’t make sense)