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-15 11:55:38
From:   anonymous2
Response to: C, C++, Java, maybe others - zeroth element arrays

"You and all the other replies seem to forget
the most important thing: an array index measures
the distance of the element from the beginning
of the array."


First of all, the distance is not the element number, it is the multiple of the element number times the size of an individual element in bytes.


Regardless of that, here is where I disagree with you completely. The array index is for the PROGRAMMER. The offset is for the MACHINE. Becoming accustomed to thinking this way has nothing to do with the original point - which was that this is bending the humans to the machine rather than the other way around.