-
-
Save mletterle/1286005 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
lock(something) | |
{ | |
try | |
{ | |
if(foo) { Bar(); } | |
else { Baz(); } | |
} | |
catch | |
{ | |
Bampf(); | |
} | |
} | |
lock(something) | |
{ | |
try | |
{ | |
if (foo) // THIS | |
{ | |
Bar(); | |
} | |
else // LOOKS ///Well, like, that's just your opinion, man. | |
{ | |
Baz(); | |
} | |
} | |
catch // RETARDED | |
{ | |
Bamf(); | |
} | |
} | |
// | |
// vs. | |
// | |
lock(something) { // Much better. | |
try { | |
if (foo) { | |
Bar(); | |
} else { | |
Baz(); | |
} | |
} catch { | |
Bamf(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment