2 ms·
Consider C, where {} are optional for single-statement bodies: void foo() { ... for( ... ) printf(..) sum += x
by vldr 8y ago
Consider C, where {} are optional for single-statement bodies:
void foo() {
...
for( ... )
printf(..)
sum += x
}
In python it's at least more visually obvious that the second statement isn't part of the for-body.