Click here to Skip to main content
15,867,765 members

Survey Results

Braces around single line commands. Needed or not?

Survey period: 12 Feb 2018 to 19 Feb 2018

It's just about the braces. Not about whether the leading brace should or should not be on the same line as the conditional. One war at a time.

OptionVotes% 
I prefer

if (condition)
  statement;
21323.20
I prefer

if (condition)
{
  statement;
}
54158.93
It depends16417.86



 
GeneralRe: Once Bitten, Twice Shy Pin
Dan Neely14-Feb-18 2:45
Dan Neely14-Feb-18 2:45 
GeneralRe: Once Bitten, Twice Shy Pin
Randor 14-Feb-18 18:30
professional Randor 14-Feb-18 18:30 
GeneralRe: Once Bitten, Twice Shy Pin
CHill6014-Feb-18 22:51
mveCHill6014-Feb-18 22:51 
GeneralConsistent formatting Pin
Jörgen Andersson12-Feb-18 23:01
professionalJörgen Andersson12-Feb-18 23:01 
GeneralNeither, sorta? Pin
Jon McKee12-Feb-18 11:54
professionalJon McKee12-Feb-18 11:54 
GeneralRe: Neither, sorta? Pin
Kevin McFarlane13-Feb-18 4:42
Kevin McFarlane13-Feb-18 4:42 
GeneralEasier for debugging Pin
djdynamix12-Feb-18 9:36
djdynamix12-Feb-18 9:36 
GeneralI'm not some psychopath... Pin
Sander Rossel12-Feb-18 6:18
professionalSander Rossel12-Feb-18 6:18 
GeneralRe: I'm not some psychopath... Pin
ZurdoDev12-Feb-18 8:22
professionalZurdoDev12-Feb-18 8:22 
GeneralThe least keystrokes Pin
kmoorevs12-Feb-18 4:51
kmoorevs12-Feb-18 4:51 
GeneralRe: The least keystrokes Pin
Ravi Bhavnani12-Feb-18 5:20
professionalRavi Bhavnani12-Feb-18 5:20 
GeneralRe: The least keystrokes Pin
PeejayAdams13-Feb-18 1:19
PeejayAdams13-Feb-18 1:19 
GeneralRe: The least keystrokes Pin
Richard Andrew x6413-Feb-18 8:59
professionalRichard Andrew x6413-Feb-18 8:59 
GeneralRe: The least keystrokes Pin
Bassam Abdul-Baki15-Feb-18 3:45
professionalBassam Abdul-Baki15-Feb-18 3:45 
GeneralRe: The least keystrokes Pin
Richard Andrew x6415-Feb-18 11:57
professionalRichard Andrew x6415-Feb-18 11:57 
Generalbraces should be required and properly formatted Pin
Dennis E White12-Feb-18 4:49
professionalDennis E White12-Feb-18 4:49 
GeneralRe: braces should be required and properly formatted Pin
PeejayAdams13-Feb-18 1:21
PeejayAdams13-Feb-18 1:21 
GeneralIt definitely depends and the key differentiater is where the opening one goes Pin
Dan Neely12-Feb-18 4:32
Dan Neely12-Feb-18 4:32 
GeneralIs Switch Case part of other? Pin
MarcusCole683312-Feb-18 4:31
professionalMarcusCole683312-Feb-18 4:31 
GeneralBraces. Pin
Ron Anders12-Feb-18 3:04
Ron Anders12-Feb-18 3:04 
GeneralRe: Braces. Pin
Chris Maunder12-Feb-18 9:37
cofounderChris Maunder12-Feb-18 9:37 
GeneralAlways use curly braces Pin
ZurdoDev12-Feb-18 2:14
professionalZurdoDev12-Feb-18 2:14 
GeneralI prefer... Pin
Slacker00712-Feb-18 1:32
professionalSlacker00712-Feb-18 1:32 
GeneralRe: I prefer... Pin
ZurdoDev12-Feb-18 2:10
professionalZurdoDev12-Feb-18 2:10 
GeneralRe: I prefer... Pin
Slacker00712-Feb-18 2:12
professionalSlacker00712-Feb-18 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.