Skip to content

Instantly share code, notes, and snippets.

@mletterle
Forked from anaisbetts/gist:1285741
Created October 14, 2011 01:20
Show Gist options
  • Save mletterle/1286005 to your computer and use it in GitHub Desktop.
Save mletterle/1286005 to your computer and use it in GitHub Desktop.
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