Better HN
topnewbestaskshowjobs
Log inSign up

yath_

3 karma · joined Jan 2, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

> // But it also even has an explicit n * m form as well. > make([]Object, n, m);

make([]T, m, n) does not allocate a slice of length n*m, but of length n and capacity m.