emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Noob question: why sequences, lists in particular start at index 0 i


From: Stefan Monnier
Subject: Re: Noob question: why sequences, lists in particular start at index 0 in Elisp?
Date: Sun, 08 Nov 2020 09:42:42 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> I understand why they do so in C; but why in Elisp?

Why should it be different in ELisp?

AFAIK, indexing should always be 0-based, so we don't get into silly "is
1900 in the 19th century or the 20th century".  And indeed computer
science got this mostly right, except for Fortran arrays and
Emacs buffers.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]