2 ms·
> But higher level data structures like lists, sets, maps etc. are all implemented using those primitives under the hood In Go you don't have generics as a pri
by TheDong 8y ago
> But higher level data structures like lists, sets, maps etc. are all implemented using those primitives under the hood
In Go you don't have generics as a primitive with which to build those things.
As a result, you don't have the building blocks for anyone to build a usable data structure unless it's baked into the core of the language.
- uryga 8y agoI'm aware of that, and I read the generics proposal linked. I commented here because I wanted to respond to this: > Should [be just libraries]? I think you are asserting facts that are not in evidence. I tried to describe why I feel that go's collections should be libraries and not builtins, and hopefully understand why GP seemed like they were questioning that idea.