When I started PC coding 20 years ago on C and C++ there the convention
about where to put your {braces} was unclear. I remember back then that
there seemed to be more Microsoft sample code with vertically aligned
braces, so I ran with that and I have been ever since, even in my Java days.
I can't recall ever having a debate with previous colleagues about which
style to use, so in the absence of any memorable disputes I'm guessing we
all used vertical braces.

 

However, I notice a strong trend towards indented braces over the last
couple of years. The Framework Design Guidelines
<http://www.amazon.com/Framework-Design-Guidelines-Conventions-Libraries/dp/
0321545613>  book also authoritatively states that indented braces are now
recommended. So am I caught on the losing side of a braces battle?

 

It may seem trivial, but your eyes and brain get used to a certain
appearance of code (like the VB vs C# battle) and a subtle change takes a
bit of getting use to. Are my millions of existing lines of C# code with
vertical braces now a testament to my defeat? Is anyone else suffering from
a project with mixed brace styles?

 

Greg

Reply via email to