Hacker News new | ask | show | jobs
by dualogy 3165 days ago
What kind of example is this, the 1st is an entirely different 'program' than the 2nd? Unless f1 is a no-op.
1 comments

Yes, 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.