3 ms·
Yes. "dynamically growable slice" : "vector" :: "tomato" : "to-mah-to"
by zellyn 2y ago
Yes. "dynamically growable slice" : "vector" :: "tomato" : "to-mah-to"
- tialaramex 2y agoThe 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.