[erlang-questions] beginner: why are arrays zero-based?
Thu Dec 6 20:18:23 CET 2007
On Dec 6, 2007 11:13 AM, Jonathan Amsterdam <jbamsterdam@REDACTED> wrote:
> I'm an Erlang newbie, and very excited by the language.
> I have a lot of questions, but let me start with this timely one: why
> are the new arrays in R12B zero-based? I see in the source that the
> author says it's a conscious design choice, but I don't see the
> rationale, since everything else in the language seems to be 1-based.
I can't let this go without forwarding a favorite quote... Apologies
for the noise.
"Should array indices start at 0 or 1? My compromise of 0.5 was
rejected without, I thought, proper consideration." -- Stan
More information about the erlang-questions