Andy Armstrong <a...@hexten.net> wrote:
> On 13 May 2012, at 18:48, Michael G Schwern wrote:
> > * Lists count from 0
> >  * Everybody does it
> >  * Everybody's wrong
> >  * See also "let's just paste what C does"
>
> I find it very hard to live with Lua's 1-based arrays. I don't think
> it's just familiarity - lots of index calculations work out
> significantly more verbose and ugly with 1-based arrays.

There are good reasons to prefer a zero base with an open upper bound.

http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html

Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  http://dotat.at/
Fair Isle: Westerly or northwesterly 6 to gale 8, occasionally severe gale 9
in north. High. Squally wintry showers. Moderate or poor.

Reply via email to