Click here to Skip to main content
15,893,668 members

Survey Results

Another religious war: Whitespace and Parentheses   [Edit]

Survey period: 1 Apr 2001 to 7 Apr 2001

How do you enclose expressions in parentheses? See the Braces and Brackets page for a list of options.

OptionVotes% 
Spaces between inside and outside the parentheses.6611.91
Spaces outside parentheses, no space inside.23943.14
Spaces inside parentheses, no space outside.10218.41
No white space.14726.53



 
GeneralAnoyher war? Pin
AlexMarbus5-Apr-01 0:42
AlexMarbus5-Apr-01 0:42 
GeneralRe: Anoyher war? Pin
Anders Molin5-Apr-01 2:49
professionalAnders Molin5-Apr-01 2:49 
GeneralRe: Anoyher war? Pin
AlexMarbus5-Apr-01 6:19
AlexMarbus5-Apr-01 6:19 
GeneralRe: Anoyher war? Pin
Michael Dunn5-Apr-01 20:16
sitebuilderMichael Dunn5-Apr-01 20:16 
GeneralRe: Anoyher war? Pin
AlexMarbus6-Apr-01 7:37
AlexMarbus6-Apr-01 7:37 
GeneralHowever it .... Pin
Colin J Davies3-Apr-01 21:03
Colin J Davies3-Apr-01 21:03 
GeneralNot enough options... Pin
Anders Molin2-Apr-01 3:02
professionalAnders Molin2-Apr-01 3:02 
GeneralRe: Not enough options... Pin
David Wulff2-Apr-01 5:13
David Wulff2-Apr-01 5:13 
GeneralRe: Not enough options... Pin
Phil J Pearson2-Apr-01 5:59
Phil J Pearson2-Apr-01 5:59 
GeneralRe: Not enough options... Pin
Thomas Freudenberg2-Apr-01 23:58
Thomas Freudenberg2-Apr-01 23:58 
GeneralRe: Not enough options... Pin
Chris Maunder3-Apr-01 16:50
cofounderChris Maunder3-Apr-01 16:50 
This brings up something that I've wondered about for ages. I've been trying to work out why some people use
if(something)
and it seemed to me that maybe the thinking was that 'if' is like a function. So you would have
bool b = Foo(m_bar);
if(b) ...
To me, 'if' is a keyword, and the parentheses are part of the conditional, and not the 'if'. Am I on the right track in thinking that
if(something)
stems from a view that 'if' is like a function?

I dunno. It's all too strange.

cheers,
Chris Maunder
GeneralRe: Not enough options... Pin
Anders Molin3-Apr-01 21:15
professionalAnders Molin3-Apr-01 21:15 
GeneralRe: Not enough options... Pin
6-Apr-01 1:49
suss6-Apr-01 1:49 
GeneralLost in space... Pin
Michael Dunn1-Apr-01 20:14
sitebuilderMichael Dunn1-Apr-01 20:14 
GeneralRe: Lost in space... Pin
2-Apr-01 5:44
suss2-Apr-01 5:44 
GeneralTo be honest... Pin
Christian Graus1-Apr-01 16:12
protectorChristian Graus1-Apr-01 16:12 
GeneralRe: To be honest... Pin
Anders Molin2-Apr-01 2:57
professionalAnders Molin2-Apr-01 2:57 
GeneralRe: To be honest... Pin
Martin Richter [rMVP C++]3-Apr-01 0:08
Martin Richter [rMVP C++]3-Apr-01 0:08 
GeneralRe: To be honest... Pin
Maximilian Hänel3-Apr-01 1:13
Maximilian Hänel3-Apr-01 1:13 
GeneralRe: To be honest... Pin
Ben Burnett7-Apr-01 13:00
Ben Burnett7-Apr-01 13:00 
GeneralRe: To be honest... Pin
Paul Westcott3-Apr-01 7:09
Paul Westcott3-Apr-01 7:09 
GeneralRe: To be honest... Pin
3-Apr-01 11:09
suss3-Apr-01 11:09 
GeneralRe: To be honest... Pin
Chris Maunder3-Apr-01 16:54
cofounderChris Maunder3-Apr-01 16:54 

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.