2 ms·
And what if foo had already been defined in the scope?
by dotancohen 7y ago
And what if foo had already been defined in the scope?
- munificent 7y agoThe new one shadows it.
- dotancohen 7y agoLocal scope might not be what the programmer wants, though, depending on circumstance. Pseudocode: i = 3; foo = \0; while ( i-- ) { if ( foo = resultFromFooApi() ) { break; } sleep 1; } return foo;