|
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
[Prev in Thread] | Current Thread | [Next in Thread] |