From: pattis@beaver.cs.washington.edu (Richard Pattis)
Subject: Re: STRING starts at 1: why?
Date: 6 Jan 93 07:57:02 GMT [thread overview]
Message-ID: <1993Jan6.075702.21522@beaver.cs.washington.edu> (raw)
I actually once had a list of reasons to start arrays at 0 vs 1, which I've
conveniently lost. In the spirit of starting a new one, I'll try to recall what
I can from the old list. An array that is a STRING probably has other special
properties.
Start at 1:
'LENGTH is same as 'LAST
Negated indexes are unique (I used this fact once in a program)
Start at 0:
Mod works better (for hashing)
Convient when doing work with 'polynomial-like' things
Rich
--
------------------------------------------------------------------------------
Richard E. Pattis "Programming languages are like
Department of Computer Science pizzas - they come in only "too"
and Engineering sizes: too big and too small."
reply other threads:[~1993-01-06 7:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox