There is already Tim Holy’s OffsetArrays type, which is more general.
It would be interesting to see a performance comparison between the two, when the OffsetArrays is using 0 for the offset,
and seeing how either package fares against the “built-in” Julia Array type.
For a better approach, you should use CustomUnitRanges and exploit the ZeroRange type to create your own ZArray{T,N} <: AbstractArray{T,N}. See the code in OffsetArrays for inspiration.
It’s actually a great exercise for someone who wants to make the transition newbie => expert. If you submit the package for inclusion in JuliaArrays, I can promise you that you’ll get thorough code-review; it’s like having a professional consultant giving you free advice about how to become a better Julia programmer. Why on earth would an expert want to take such an opportunity away from someone?