Posted in

Go数组长度n的“伪变量”本质:为什么sizeof([n]struct{}) == n*sizeof(struct{}),但n不能是runtime变量?

第一章:Go数组长度n的“伪变量 … Go数组长度n的“伪变量”本质:为什么sizeof([n]struct{}) == n*sizeof(struct{}),但n不能是runtime变量?Read more