I am curious, what mess did 1-based indexing create for Julia ???
See: https://docs.julialang.org/en/v1/devdocs/offset-arrays/
Discusses how to generalize the code so it handles arbitrary ranges.
for x in some_collection
Which is great if you don't need the index, and if you do need the index then you want the equivalent of: for i in some_collection.range
or for i, x in some_collection.enumerated
Being forced to use 0-based or 1-based or even strictly integer-based indexing is the wrong thing. If you want to use characters/runes as your index you should be able to. If you want to use some enumerated type, you should be able to. And if you want some subrange of one of those, you should be able to.Ime this expectation of developers doesn’t scale reliably. We can’t even trust engineers to keep feet and meters straight. Relying on conventions for correctness is a recipe for disaster.