Created
May 22, 2015 16:01
-
-
Save mientjan/66aa4060aa87b509649c to your computer and use it in GitHub Desktop.
Why i want a space inside
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
// 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