4 ms·
There's been lots said on the 1-based indexing discussion, so I won't get into it here. It's not a deal-breaker, I suppose. Still, the rationale I've heard --
by kafkaesq 11y ago
There's been lots said on the 1-based indexing discussion, so I won't get into it here.
It's not a deal-breaker, I suppose. Still, the rationale I've heard -- "We have chosen 1 to be more similar to existing math software"[1] (as opposed to basically every modern programming language out there) just seems... weird. Perhaps "compatibility with traditional sequence notation in math and physics" (upon which presumably most software packages are based) would be a better statement of the case for 1-based indexing.
[1] https://github.com/JuliaLang/julia/issues/558 https://github.com/JuliaLang/julia/issues/558