3 ms·
I always like to point to the Julia package TwoBasedIndexing (https://github.com/simonster/TwoBasedIndexing.jl/ https://github.com/simonster/TwoBasedIndexing.jl
by chrispeel 8y ago
I always like to point to the Julia package TwoBasedIndexing (https://github.com/simonster/TwoBasedIndexing.jl/ https://github.com/simonster/TwoBasedIndexing.jl/) which is IMHO provides the very best way to index an array. Yes, Julia defaults to 1-based indexing, and allows zero-based indexing (https://github.com/JuliaArrays/OffsetArrays.jl https://github.com/JuliaArrays/OffsetArrays.jl) or indeed whatever sort of indexing you want, yet I think the world is going to eventually come around to THE ONE TRUE indexing scheme of being two-based.
:-)
- krylon 8y agoI remember reading a funny quote that the obvious compromise between 1- and 0-based indexing was 0.5, and that it was dismissed without proper consideration. Unfortunately, I do not remember where I read that or who wrote/said it. :(
- ScottBurson 8y agoStan Kelly-Bootle: https://www.azquotes.com/author/27328-Stan_Kelly_Bootle https://www.azquotes.com/author/27328-Stan_Kelly_Bootle
- krylon 8y agoThank you! Sad to see he passed away, though.
- deleted 8y ago[deleted]