Among the different replies given in the linked discussion, I think that this one by Oscar Smith is the clearest, so perhaps it will make sense after reading it:
The reason scalar indexing drops dimensions is a little more subtle than I explained initially. The idea is that A[i,:][j]=A[i,j] is an identity that feels like it should hold. Since A[i,j] is a scalar, A[i,:] needs to be a type which when indexed by 1 index gives a scalar. The fact that Julia has ND arrays makes this harder to get around since matrices aren’t consider special-- they are just Array{T,2}.
The reason A[[i],:] needs to have the same type as A[[i,j],:] is for type stability. Both o…