4 ms·
If by that reference to Python you mean you want significant whitespace, I think that would make it unnecessarily difficult to work with different scopes. fn
by kiiski 11y ago
If by that reference to Python you mean you want significant whitespace, I think that would make it unnecessarily difficult to work with different scopes.
fn something() {
foobar();
{
bar();
foo();
}
quux();
}
That is much easier to understand, and easier for tools to work with (they can actually automatically indent your code without breaking it), than:
def something():
foobar()
bar()
foo()
quux()
edit: And how would you even add a scope right after another block (like if)? That would require you to have a keyword anyway.