3 ms·
There's nothing preventing you from using a 0-base, it's just extra work to implement. You can even use the fabled 2-base index! https://docs.julialang.org/en/v
by throwaway889900 6y ago
There's nothing preventing you from using a 0-base, it's just extra work to implement. You can even use the fabled 2-base index! https://docs.julialang.org/en/v1/devdocs/offset-arrays/ https://docs.julialang.org/en/v1/devdocs/offset-arrays/
- henearkr 6y agoFor people complaining about 1-indexing, it is precisely because they wish what they feel the "natural" way to count would come without overhead. So it's this "extra work" that is the problem. It would be nice to have it as an environment variable or a runtime option. Then what about portability issues... So let's just fork Julia and call it JuliB with 0-indexing =)