Skip to content

Instantly share code, notes, and snippets.

@mientjan
Created May 22, 2015 16:01
Show Gist options
  • Save mientjan/66aa4060aa87b509649c to your computer and use it in GitHub Desktop.
Save mientjan/66aa4060aa87b509649c to your computer and use it in GitHub Desktop.
Why i want a space inside
// imagine having a lot of || making it a very long line, you'd want to add newlines to improve readability/editability
// e.g.: if (foo || bar || baz || moo || stuff || thingy) { }
// we use for 4 spaces for tabs and having no space after the if doesn't line it up nicely
if(foo
|| bar)
{
// ..
}
// with space after if it does line up
if( foo
|| bar
|| baz
|| moo
|| stuff
|| thingy )
{
// ..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment