[erlang-questions] beginner: why are arrays zero-based?
Tony Finch
dot@REDACTED
Thu Dec 6 18:04:59 CET 2007
On Thu, 6 Dec 2007, Jonathan Amsterdam wrote:
>
> why are the new arrays in R12B zero-based?
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html
The clumsiness of 1-based numbering is much more serious when you are
dealing with dynamically determined subsequences a lot, as you are with
array indexes. Tuple indexes tend to be more static.
Tony.
--
f.a.n.finch <dot@REDACTED> http://dotat.at/
THAMES DOVER WIGHT PORTLAND PLYMOUTH: SOUTHWESTERLY 6 TO GALE 8, OCCASIONALLY
SEVERE GALE 9, PERHAPS STORM 10 LATER. ROUGH OR VERY ROUGH. RAIN OR SQUALLY
SHOWERS. MODERATE, OCCASIONALLY POOR.
More information about the erlang-questions
mailing list