We currently assume that axes(A::AbstractArray, i) <: AbstractUnitRange
in lots of code (so even tighter than your range assumption), and we also expect axes to have integer elements. I think you’re safe to assume the same. A custom “array” that breaks this will already be in lots of deep water and I’d say they’re fine swimming out there on their own.
4 Likes