# Why column major?

**URL:** <https://discourse.julialang.org/t/why-column-major/24374>\
**Category:** General Usage\
**Tags:** question, array, linearalgebra, column-major\
**Created:** [May 19, 2019, 10:49am UTC](https://discourse.julialang.org/t/why-column-major/24374 "2019-05-19T10:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![amrods](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amrods/32/2543_2.png) [@amrods](https://discourse.julialang.org/u/amrods)\
**Post date:** [August 31, 2021, 2:36pm UTC](https://discourse.julialang.org/t/why-column-major/24374/38 "2021-08-31T14:36:51Z")

</div>

this may help dispel the confusion

> [@How much can hard-coded indexing be avoided in Julia?](https://discourse.julialang.org/t/how-much-can-hard-coded-indexing-be-avoided-in-julia/55699):
>
> I’ve noticed a trend toward Julia’s new keywords trending towards using keywords and functions instead of integer indexing in Julia. For example, first(array) instead of array[1], or eachindex(array) instead of 1:length(array). Is this an intended aim for Julia style-- to avoid integer indexes in code that can avoid it? How likely is it that in the future Julia code will not need to show its 1-based integer heritage in common written code?

---

_[View the full topic](https://discourse.julialang.org/t/why-column-major/24374)._
