Re:A review of the Julia language (2014)
by ModernMech on Sunday September 09, 2018 @11:19AM
(#17946287)
Sure I get that. MATLAB and FORTRAN also use 1 based indexing, so that's nothing new. People have been arguing about that since 1950 :P I just didn't understand the context of the post.
Zero-based indexing of arrays makes sense in a language like C where arrays are just pointers and offsets are determined with arithmetic on pointer addresses in memory. This is why we are trained to write code like "for (i = 0; i < n; i++)". But in Julia where one of the stated purposes is to be able to write code that looks like formulae, it is far more natural to use one-based indexing.