Women in Technology

Hear us Roar



Article:
  What I Hate About Your Programming Language
Subject:   C, C++, Java, maybe others - zeroth element arrays
Date:   2003-05-14 09:55:38
From:   anonymous2
Response to: C, C++, Java, maybe others - zeroth element arrays

The "Why waste a perfectly good digit?" bit was tongue-in-cheek.


But I've been programming so long I really can't imagine not using zero. It's second nature to me now.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • C, C++, Java, maybe others - zeroth element arrays
    2003-05-14 10:54:13  anonymous2 [View]

    why arrays indexed from zero? cos everybody is used to them. maybe if we all started indexing arrays from 1 back in the day it'd seem sensible, but it has become convention. i'd find it weird if i moved to a new language and found the arrays indexed from 1, it'd spongle all my for-loop logic & annoy me every time i forgot it.