Created
October 2, 2013 15:04
-
-
Save simonjefford/6795195 to your computer and use it in GitHub Desktop.
Why put braces around single lines?
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
if (someCondition) | |
service.DoSomething(); |
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
// Two weeks later... | |
if (someCondition) | |
service.DoSomething(); | |
service.DoThingThatShouldHappenIfSomeCondition(); // maybe Python had the right idea? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment