News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by ChrisRackauckas on Thursday August 25, 2022 @01:35AM (#32589904)
The type system does tell you if this is used. `::OffsetArray`.
Re:Why do arrays start at 0? by btilly on Thursday August 25, 2022 @10:08AM (#32593904)
Yes, but did the programmer tell the type system that they are expecting an OffsetArray, they have tested it, and it will work correctly?

The existence of a mechanism does not guarantee its correct use. As that link demonstrates.