Created
August 24, 2015 00:15
-
-
Save minhoolee/e438bce24a91d345e385 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
// 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