This will be a ridiculous charicature, but this issue has come up so many 
times that I think a little charicaturization is timely.

With regards to arrays and views, the "big change" in julia 0.5 will 
essentially be a 1-line change:

     getindex(A, indexes...) = slice(A, indexes...)

Since slice is already in base, you can use it today :-).

There's much more to it than that: SubArrays don't always check bounds, so 
currently this is At Your Own Risk. There are some difficulties in reshaping 
SubArrays.

But if the fundamental question is, "can I have performant and very flexible 
views?" the answer is: you already have them.

Best,
--Tim

On Friday, October 23, 2015 04:36:03 AM Michael Hatherly wrote:
> It’s planned for 0.5. See https://github.com/JuliaLang/julia/issues/13157
> which covers all the planned changes I think.
> 
> — Mike
> ​
> 
> On Friday, 23 October 2015 13:14:56 UTC+2, Neal Becker wrote:
> > One feature I've been eager to see is that array slices become views,
> > which
> > I think was targeted for 0.4.  Is this correct?  I hate to see un-needed
> > copying.

Reply via email to