3 ms·
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 eit
by tialaramex 2y ago
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.