Is there background on why ranging over an addressable array makes a copy of that array rather than iterating over the original?
I know it's possible to replace "range x" with "range &x", but the only time the latter actually appears in the standard repo is within $GOROOT/test. On the other hand, running
github.com/mdempsky/rangerdanger against std+cmd yields 90 hits.
Is this something:
- we should be addressing in the standard repo?
- we should add a vet or lint check for?
- worth trying to change for Go 2?