Currently if you slice an array and the slice indices mean "a slice of the whole object", the object is returned, rather than a copy. This is the only case of slicing where a new object is not returned.
I think slicing should ALWAYS return a new object.
Currently if you slice an array and the slice indices mean "a slice of the whole object", the object is returned, rather than a copy. This is the only case of slicing where a new object is not returned.
I think slicing should ALWAYS return a new object.