| ▲ | markkitti 3 hours ago | |
> I wish there was a way to specify the offset base with something like a C #define or compiler directive. Julia has OffsetArrays.jl implementing arbitrary-base indexing: https://juliaarrays.github.io/OffsetArrays.jl/stable/ The experience with this has been quite mixed, creating a new surface for bugs to appear. Used well, it can be very convenient for the reasons you state. | ||