3 ms·
They kind of did this with maps and slices except that they baked them right into the language instead of the standard library. Like, map is a keyword. The stan
by coddle-hark 6y ago
They kind of did this with maps and slices except that they baked them right into the language instead of the standard library. Like, map is a keyword. The standard library doesn't have many data structures at all because, well, without generics they're not very useful. There's a few things like a linked list and a thread-safe map that accept interface{} types but then you're basically throwing the type system out the window.
- random5634 6y agoI wish they just did a bunch more data structures in the language and called it good.