Hacker News new | past | comments | ask | show | jobs | submit login

The growable array type is an owning container, whereas a slice (in C++ and C# span) is a reference type, it doesn't actually own anything.

This type isn't either of those things, it's a hybrid, and Go tries to get away with that because it's a garbage collected language so people don't need to care as much about ownership.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: