Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Let’s Stop Bashing C. Parent comment
I read the instruction as: "Set i to 3. Subtract 1 then print until false."
i = 3 3 - 1 = 2, print 2 - 1 = 1, print 1 - 1 = 0, print 0 = false, stop
I read the instruction as: "Set i to 3. Subtract 1 then print until false."
I see a lot of people complain about using `--` like that but I fail to see what is unintuitive about it if you actually read the code and see what i is initialized as. =\