Women in Technology  Hear us Roar    What I Hate About Your
Programming Language Date:   2003-05-14 06:51:27 From:  
anonymous2 I hate zero-based array indexing. There is an
IMMEDIATE disconnect when you declare an array to have 10
elements, then can only address up to element 9. Couldn't the
COMPILER handle this transition so I can think about the array
elements naturally?!?  What the heck is the ZEROth day of the
week?  Full Threads Oldest First  Showing messages 1 through 26
of 26.    • C, C++, Java, maybe others - zeroth element arrays
2004-02-16 10:42:43  andrewjmarshall [View]      Here's the
final answer and I DON'T want to hear any arguments, because
they're WRONG.      For low/machine-level languages, arrays
should be zero-based. There's too many technical reasons for
this to argue against.      For ALL other languages, array
bounds should be CONFIGURABLE. Sometimes you want zero-based
(freaks), ALMOST ALWAYS you want one-based, and sometimes you
want a custom base. Let's remember one of the prim