Skip to content

Instantly share code, notes, and snippets.

@joyhuang9473
Last active October 18, 2015 07:28
Show Gist options
  • Save joyhuang9473/3c3284d840590871c457 to your computer and use it in GitHub Desktop.
Save joyhuang9473/3c3284d840590871c457 to your computer and use it in GitHub Desktop.
When you have a boolean expression that is longer than the standard line length, be consistent in how you break up the lines.
if (
this_one_thing > this_other_thing &&
a_third_thing == a_fourth_thing &&
yet_another && last_one
) {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment