Skip to content

Instantly share code, notes, and snippets.

@minhoolee
Created August 24, 2015 00:15
Show Gist options
  • Save minhoolee/e438bce24a91d345e385 to your computer and use it in GitHub Desktop.
Save minhoolee/e438bce24a91d345e385 to your computer and use it in GitHub Desktop.
// Interesting dilemma in which Egyptian style is worse in performance
// than Allman style (brackets on seperate lines)
// Egyptian Style
void MyFunction(
int parameterOne,
int parameterTwo) {
int localOne,
int localTwo
}
// Allman style
void MyFunction(
int parameterOne,
int parameterTwo)
{
int localOne,
int localTwo
}
// It could be said that Egyptian style can be rewritten as so, but then no point in saving new line:
void MyFunction(
int parameterOne,
int parameterTwo) {
int localOne,
int localTwo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment