I have just noticed that my keyboard's horizontal row of numbers starts from 1. I don't remember seeing any keyboard with a row of: 0-1-2...-9. But my keyboard's keypad has zero next to 1 (at the bottom as a huge button).
Wasn't it at some stage, with x86 assembly at least, that a comparison with zero (jump-zero instruction) was faster than comparing with any arbitrary integer? This could have had (aeons ago) an effect in looping through an (edit: zero-index)-array (and preferring the backwards loop) ?
bw, bliako
In reply to Re: I prefer my indexes to start at:
by bliako
in thread I prefer my indexes to start at:
by Arunbear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |