@pcwalton Yes. Making people carefully consider their choice of index type is bad; not the kind of thing you should need to worry about.
-
-
-
@pcwalton That said, it *used* to be fine before 64-bit archs. This is cracks in the ground opening from tectonic shifts underneath...
End of conversation
New conversation -
-
-
@pcwalton I would guess it would lead to less gen. code, last I wrote 808x assembler, count down loops were less instructions than count up -
@pcwalton of course most algorithms are easier to expressed as count up loops and the extra instruction saved by a jnz is not with it
End of conversation
New conversation -
-
-
@pcwalton Rewrite the same as a while loop and it's still complicated. The problem is overflowing integer types.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@pcwalton Seriously. You almost always want to loop over *things* anyway, so iterators win. Add .enumerate() if you need indices! -
@TedMielczarek@pcwalton remember this is C, which is often used when every last cycle matters. - 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.