Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is not an edge case.

effective go[0] clearly states "Slices hold references to an underlying array, and if you assign one slice to another, both refer to the same array."

[0] https://golang.org/doc/effective_go.html#slices



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: