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

> Though I suspect under the hood the len and cap are ordered first.

A slice is stored in memory as a `reflect.SliceHeader` https://golang.org/pkg/reflect/#SliceHeader ; the pointer does come first.



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

Search: