Click here to Skip to main content
15,115,261 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: The usual b&tching Pin
ZurdoDev12-Feb-18 3:31
professionalZurdoDev12-Feb-18 3:31 
GeneralRe: The usual b&tching Pin
W Balboos, GHB12-Feb-18 3:32
mveW Balboos, GHB12-Feb-18 3:32 
GeneralRe: The usual b&tching Pin
CodeWraith12-Feb-18 3:43
MemberCodeWraith12-Feb-18 3:43 
GeneralRe: The usual b&tching Pin
W Balboos, GHB12-Feb-18 3:44
mveW Balboos, GHB12-Feb-18 3:44 
GeneralRe: The usual b&tching Pin
Chris Maunder12-Feb-18 10:39
cofounderChris Maunder12-Feb-18 10:39 
GeneralRe: The usual b&tching Pin
bryce12-Feb-18 18:59
Memberbryce12-Feb-18 18:59 
GeneralRe: The usual b&tching Pin
W Balboos, GHB13-Feb-18 1:26
mveW Balboos, GHB13-Feb-18 1:26 
GeneralTo be extra confusing... Pin
Graham Breach11-Feb-18 23:55
MemberGraham Breach11-Feb-18 23:55 
Especially without any comments:
C++
condition && statement;

GeneralAlternative 3 Pin
Jonas Hammarberg11-Feb-18 22:44
professionalJonas Hammarberg11-Feb-18 22:44 
PraiseRe: Alternative 3 Pin
CPallini14-Feb-18 8:40
mveCPallini14-Feb-18 8:40 
GeneralOK, so I'm a pedant, but really... Pin
A_Griffin11-Feb-18 22:21
MemberA_Griffin11-Feb-18 22:21 
GeneralRe: OK, so I'm a pedant, but really... Pin
Nathan Minier12-Feb-18 2:12
professionalNathan Minier12-Feb-18 2:12 
GeneralRe: OK, so I'm a pedant, but really... Pin
A_Griffin12-Feb-18 2:19
MemberA_Griffin12-Feb-18 2:19 
GeneralRe: OK, so I'm a pedant, but really... Pin
Nathan Minier12-Feb-18 2:26
professionalNathan Minier12-Feb-18 2:26 
GeneralRe: OK, so I'm a pedant, but really... Pin
ZurdoDev12-Feb-18 3:12
professionalZurdoDev12-Feb-18 3:12 
GeneralRe: OK, so I'm a pedant, but really... Pin
A_Griffin12-Feb-18 3:36
MemberA_Griffin12-Feb-18 3:36 
GeneralRe: OK, so I'm a pedant, but really... Pin
PIEBALDconsult12-Feb-18 3:40
professionalPIEBALDconsult12-Feb-18 3:40 
GeneralRe: OK, so I'm a pedant, but really... Pin
ZurdoDev12-Feb-18 3:55
professionalZurdoDev12-Feb-18 3:55 
GeneralRe: OK, so I'm a pedant, but really... Pin
ZurdoDev12-Feb-18 3:56
professionalZurdoDev12-Feb-18 3:56 
GeneralI prefer the missing option Pin
KarstenK11-Feb-18 21:22
mveKarstenK11-Feb-18 21:22 
GeneralRe: I prefer the missing option Pin
den2k8811-Feb-18 23:31
professionalden2k8811-Feb-18 23:31 
GeneralRe: I prefer the missing option Pin
W Balboos, GHB12-Feb-18 1:25
mveW Balboos, GHB12-Feb-18 1:25 
GeneralRe: I prefer the missing option Pin
CodeWraith13-Feb-18 3:04
MemberCodeWraith13-Feb-18 3:04 
GeneralI prefer the middle solution, but ... Pin
OriginalGriff11-Feb-18 21:01
mveOriginalGriff11-Feb-18 21:01 
GeneralI always go ... Pin
Mehdi Gholam11-Feb-18 20:14
mvaMehdi Gholam11-Feb-18 20:14 

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.