3 ms·
This doesn't work like "else" if doSomething() can change the value of x.
by o_nate 6y ago
This doesn't work like "else" if doSomething() can change the value of x.
- anonytrary 6y agoThat's true! You could cache x as a constant beforehand, but again super ugly.