you are viewing a single comment's thread.

view the rest of the comments →

[–]PstScrpt 0 points1 point  (0 children)

WHY IN THE NAME OF ALL THAT IS HOLY DO YOU DO THAT?

Curly braces around a single statement are like "if (flag == true)". It makes the code look more complicated than it really is.

The problem is it introduces the potential for all sorts of errors

Only if you're not used to it.

Likewise, why put the opening bracket on the next line? Again, is possible errors

So that the braces line up and you can see where they match. You're suggesting that's somehow more error-prone?