2 ms·
I prefer to always use {} for readability and consistency's sake, regardless of line count. Also reduces human error.
by mshafrir 16y ago
I prefer to always use {} for readability and consistency's sake, regardless of line count. Also reduces human error.
- chime 16y agoMe too. But if the goal was to shorten "if(foo()) { bar(); }, then I could just leave the {} braces out instead of making it "foo() && bar()".