I remember a long, long discussion about making array slices (i.e.
A[:, :] syntax) to produce a view instead of a copy, but it turns out to be terribly hard to find a related thread. Can somebody point to it or describe a final status? In particular:
- Is this idea finally rejected or things may still change?
- What about special syntax? IIRC,
A@[:, :]was mentioned in some announce, but I don’t see it working on a nightly build of 0.6.
- Any optimizations on compiler level? E.g. when a slice is proved to be read-only and underlying array to be unmodified during slice lifetime?