2 ms·
> With whitespace sensitivity, "oops, I missed a brace" and "oops, I missed a tab" is exactly the same. No. There are two braces per block and as long as you a
by claudius 12y ago
> With whitespace sensitivity, "oops, I missed a brace" and "oops, I missed a tab" is exactly the same.
No. There are two braces per block and as long as you are consistent and always use braces even for single-statement if(){}, you need to miss two braces for equivalence with missing one tab. You also get the benefit that the editor can trivially re-indent your code without actually changing its meaning.