# OffsetArrays, inbounds, and confusion

**URL:** <https://discourse.julialang.org/t/offsetarrays-inbounds-and-confusion/81295>\
**Category:** Internals & Design\
**Tags:** indexing, arrays\
**Created:** [May 19, 2022, 3:50am UTC](https://discourse.julialang.org/t/offsetarrays-inbounds-and-confusion/81295 "2022-05-19T03:50:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![suavesito](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/suavesito/32/34386_2.png) [@suavesito](https://discourse.julialang.org/u/suavesito)\
**Post date:** [May 19, 2022, 4:59am UTC](https://discourse.julialang.org/t/offsetarrays-inbounds-and-confusion/81295/3 "2022-05-19T04:59:10Z")

</div>

> [@fft](#):
>
> heavily uses C++

Don’t know if you’re the same person, but I just answered [here](https://github.com/JuliaLang/julia/issues/45342#issuecomment-1131201290) that coming from C++ does help a lot to understand the complications and problems of invalid access to memory.

> [@fft](#):
>
> If that is upsetting to a majority of people maybe the whole language should switch to 0-indexing as the default.

That’s not possible ([PSA: Julia is not at that stage of development anymore](https://discourse.julialang.org/t/psa-julia-is-not-at-that-stage-of-development-anymore/44872)), or desirable, I think, for a lot of people.

> [@fft](#):
>
> to deprecate OffsetArrays

It is a package, so it cannot be deprecated (unless you convince the package author to take it down, but even then it would remain available on the Registry).

> [@fft](#):
>
> discourage their use

I don’t think it is needed to discourage the use of it, as it is somewhat niche. But as [I stated](https://discourse.julialang.org/t/discussion-on-why-i-no-longer-recommend-julia-by-yuri-vishnevsky/81151/94) on the thread discussing the original blog, I need them for the work I do. I get paid to do it that way. 😅

---

_[View the full topic](https://discourse.julialang.org/t/offsetarrays-inbounds-and-confusion/81295)._
