3 ms·
Author here. I never expected this post to get here in HN the way it was. It is definitely a work in progress, most some personal notes that I will probably ad
by kokada 2y ago
Author here.
I never expected this post to get here in HN the way it was. It is definitely a work in progress, most some personal notes that I will probably add more when I use other parts in Go that bothers me.
- kokada 2y agoBTW, 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.