...of evaluation according to spec · Issue #23188 · golang/...
Consider this program: package main import "fmt" func main() { arr := []int{1, 2} arr, arr[len(arr)-1] = arr[:len(arr)-1], 3 fmt.Println(arr) } This currently prints [1], and in fact it prints [1] with all versions of Go since Go 1. Acco...