On Wednesday, 5 February 2014 at 19:04:10 UTC, Namespace wrote:
Would it not be possible to add an "int rc" to the internal Array struct? So that int[] arr = [1, 2, 3]; is ref counted per default?
Please no (it'd also have to be int* rc btw). This makes slices fatter than they need to be.
We should be looking at reducing costs, not shuffling them around or adding to them.
