|
|
|
|
|
by a3n
3818 days ago
|
|
There's nothing about braces that ensures visual cues to nested code.
Significant whitespace does precisely that. And eliminates brace placement arguments. int func()
{
while dosomething()
{
dosomething()
dosomething()
doanotherthing()
}
dosomething()
}
def func():
while dosomething():
dosomething()
dosomething()
doanotherthing()
dosomething()
|
|
A machine can look at the braces and re-indent the code, so that you don't have to look at the braces. All while you rest assured that the meaning didn't change:
I just popped it into Vim, selected all and hit =:
Some semicolons are expected so things are a little off.