News for hackers. Stuff that matters.
Re:Modern C [pdf] by FloDo on Monday November 28, 2016 @03:25PM (#13058095)
Do you even realize that these two loops are not equivalent? One of them starts at 8, then other one starts at 9 ...
Re:Modern C [pdf] by yoha on Tuesday November 29, 2016 @01:25AM (#13061283)
Right, my bad. I tend to write loops in the former style, thinking of them as reversed(range(9)). This is another advantage of this style. I should have been more cautious when writing the second one.