|
|
|
|
|
by hibbelig
3321 days ago
|
|
Well, significant whitespace will play the role of braces, right? You can't have your editor "fix" the braces, either -- the author has to put them in. In the same way, you can't have your editor "fix" the indentation -- the author has to put it in. But with braces, you can do consistency checks, such as that they are properly nested. In a similar way, you can do consistency checks with indentation. For example: line 1
line 2
line 3
The third line is wrong, the transition from line 1 to line 2 introduced an indentation step, and the third line is neither left nor right. |
|