6 ms·
What kind of example is this, the 1st is an entirely different 'program' than the 2nd? Unless f1 is a no-op.
by dualogy 9y ago
What kind of example is this, the 1st is an entirely different 'program' than the 2nd? Unless f1 is a no-op.
- mikeash 9y agoYes, they're not the same program, but they're equally easy to write. I see people shying away from doing work in each iteration of the loop because of a feeling that it's more difficult to write the code.