Some people complain about Python having function scope rather than block scope, but this is easily fixable:
@block_scope
def somefunction():
if True:
x = 0
print(x) # error
Some people complain about Python having function scope rather than block scope, but this is easily fixable:
@block_scope
def somefunction():
if True:
x = 0
print(x) # error