This was discussed at length here:
https://github.com/JuliaLang/julia/issues/5949

And is featured in NEWS.md:
https://github.com/JuliaLang/julia/blob/master/NEWS.md#julia-v050-release-notes

Many languages do drop scalar-indexed dimensions, for instance
Python/Numpy.

On Mon, 2016-09-26 at 00:32, Joshua Jones <highly.creative.pseudo...@gmail.com> 
wrote:
> The change to indexing within matrices in 0.5.0 is fundamentally
> counterintuitive. For example:
>
> julia> frame32 = randn(16,7);
>
> julia> size(frame32[1,:])
> (7,)
>
> julia> size(frame32[1:1,:])
> (1,7)
>
> To be quite blunt, I think this is a terrible contradiction. It completely
> breaks the repmat syntax that people have used in other languages for more
> than 20 years. To obtain what my code *was* doing last week, I now need to
> do one of:
> julia> repmat(frame32[1,:]', 16, 1)
> julia> repmat(frame32[1:1,:], 16, 1)
>
> In plain English, my code needs to take the transpose of an extracted row
> for the result to be a row vector. Isn't this the very definition of
> nonreflexive syntax?

Reply via email to