Click here to Skip to main content
15,915,702 members

Survey Results

Where should the braces go?   [Edit]

Survey period: 25 Feb 2001 to 3 Mar 2001

What is your preference for placing braces. See the braces page for a list of options.

OptionVotes% 
Braces starting on control line12215.60
Braces starting on line under control line, non-indented56472.12
Braces starting on line under control line, indented729.21
Braces starting on control line, closeing brace indented162.05
Other (please demonstrate!)81.02



 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
Gavin Greig28-Feb-01 22:56
Gavin Greig28-Feb-01 22:56 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
Chris Losinger1-Mar-01 4:17
professionalChris Losinger1-Mar-01 4:17 
GeneralRE: uncomfortable standards Pin
Sir Gras of Berger1-Mar-01 7:21
Sir Gras of Berger1-Mar-01 7:21 
GeneralRe: RE: uncomfortable standards Pin
James R. Twine1-Mar-01 14:24
James R. Twine1-Mar-01 14:24 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
2-Mar-01 16:51
suss2-Mar-01 16:51 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
GeVanCo3-Mar-01 8:13
GeVanCo3-Mar-01 8:13 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
James R. Twine3-Mar-01 9:11
James R. Twine3-Mar-01 9:11 
GeneralRe: ... followup question: do you use the same format that your tutor did (incl favourate book) Pin
3-Mar-01 21:32
suss3-Mar-01 21:32 
I personally prefer style #1 because of my favourite books. K&R use it, B.Stroustrup uses it, S.Lippman uses it (though not consistently), J.Richter uses it. So if it suitable for them why it shouldn't be suitable for me?

At my current job the standard is style #2, but for my home projectss I'm still using #1.
General"Fun" coding standards ;) Pin
George27-Feb-01 6:45
George27-Feb-01 6:45 
GeneralRe: Pin
Chris Losinger27-Feb-01 7:10
professionalChris Losinger27-Feb-01 7:10 
GeneralRe: Pin
James R. Twine27-Feb-01 8:01
James R. Twine27-Feb-01 8:01 
GeneralWhy not? Pin
George27-Feb-01 8:49
George27-Feb-01 8:49 
GeneralRe: Why not? Pin
James R. Twine27-Feb-01 15:12
James R. Twine27-Feb-01 15:12 
GeneralRe: Why not? Pin
George1-Mar-01 2:03
George1-Mar-01 2:03 
GeneralRe: Why not? Pin
James R. Twine1-Mar-01 13:00
James R. Twine1-Mar-01 13:00 
GeneralRe: Why not? Pin
George2-Mar-01 5:13
George2-Mar-01 5:13 
GeneralAwwww, Geeze... Pin
James R. Twine2-Mar-01 13:13
James R. Twine2-Mar-01 13:13 
GeneralRe: Why not? Pin
Chris Losinger2-Mar-01 5:25
professionalChris Losinger2-Mar-01 5:25 
GeneralRe: Why not? Pin
James R. Twine2-Mar-01 13:18
James R. Twine2-Mar-01 13:18 
GeneralRe: Why not? Pin
Chris Losinger3-Mar-01 7:48
professionalChris Losinger3-Mar-01 7:48 
General*I* will determine what I was trying to imply, if anything. Pin
James R. Twine3-Mar-01 9:07
James R. Twine3-Mar-01 9:07 
GeneralRe: *I* will determine what I was trying to imply, if anything. Pin
Chris Losinger3-Mar-01 11:07
professionalChris Losinger3-Mar-01 11:07 
GeneralPascal and Option 2 Pin
27-Feb-01 5:52
suss27-Feb-01 5:52 
GeneralRe: Pascal and Option 2 Pin
Jim A. Johnson27-Feb-01 13:59
Jim A. Johnson27-Feb-01 13:59 
GeneralI have clicked Pin
26-Feb-01 21:37
suss26-Feb-01 21:37 

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.