Arrays and disappointment

by Joey deVilla on July 12, 2017

In case you were wondering, here’s a quick list of programming languages whose arrays start at 1 (made with the help of this Wikipedia page):

Thanks to Anna Filina for the find!

{ 1 comment… read it below or add one }

1 Morley July 13, 2017 at 4:46 pm

Someone on Imgur brought up a good point (hey, first time I’ve said that before): It doesn’t matter if indices start at 0 or 1 anymore, because most languages are switching to using more iterator-like structures and map methods over actual manual iteration of indices.

The next generation of programmers will probably get confused about why this was even a debate because they’ll barely ever need to use the language feature. It’s like debating the right way to use a ‘goto’.

Leave a Comment

Previous post:

Next post: