Last active
January 3, 2016 08:29
-
-
Save Bradshaw/8436633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// K&R // 1TBS | |
if (condition) { | |
foo(); | |
baz(); | |
} else { | |
bar(); | |
} | |
// Strousoup | |
if (condition) { | |
foo(); | |
baz(); | |
} | |
else { | |
bar(); | |
} | |
// Allman // BSD KNF | |
if (condition) | |
{ | |
foo(); | |
baz(); | |
} | |
else | |
{ | |
bar(); | |
} | |
// Whitesmiths | |
if (condition) | |
{ | |
foo(); | |
baz(); | |
} | |
else | |
{ | |
bar(); | |
} | |
// GNU | |
if (condition) | |
{ | |
foo(); | |
baz(); | |
} | |
else | |
{ | |
bar(); | |
} | |
// Horstmann | |
if (condition) | |
{ foo(); | |
baz(); | |
} | |
else | |
{ bar(); | |
} | |
// Pico | |
if (condition) | |
{ foo(); | |
baz(); } | |
else | |
{ bar(); } | |
// Banner | |
if (condition) { | |
foo(); | |
baz(); | |
} | |
else { | |
bar(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment