Skip to content

Instantly share code, notes, and snippets.

@Bradshaw
Last active January 3, 2016 08:29
Show Gist options
  • Save Bradshaw/8436633 to your computer and use it in GitHub Desktop.
Save Bradshaw/8436633 to your computer and use it in GitHub Desktop.
// 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