4 ms·
BTW, I will confess: the orderedmap one is something that I put mostly because I know it is something that would be feasible to implement in a future version of
by kokada 2y ago
BTW, I will confess: the orderedmap one is something that I put mostly because I know it is something that would be feasible to implement in a future version of the language and it would probably be relatively uncontroversial.
So I was expecting maybe someone will end up doing the work to propose and/or implement this to Go. Who knows, maybe this will work.
- karmakaze 2y agoWith generics being available, couldn't any library implement it without waiting for stdlib to have it?
- kokada 2y agoYes, I did cover this point in the post, but basically the main issue of not having this in stdlib is because now the choice is not obvious: if you search "ordered map for golang" you will find a dozen of different implementations.
- karmakaze 2y agoThat's probably more of an ecosystem culture thing. e.g. Python's culture is that there shouldn't be many.