2 ms·
Never used Go, but I much more prefer a proper stdlib that covers most base cases so that there isn't a need for rolling-your-own each time, or worse using a ba
by MrDresden 3y ago
Never used Go, but I much more prefer a proper stdlib that covers most base cases so that there isn't a need for rolling-your-own each time, or worse using a badly made/maintained bloated third party lib.
Examples of excellent stdlibs in my opinion would be for instance Kotlin and Python.
- LamaOfRuin 3y agoI think that's what they were saying (and what I would agree with). The Go std lib is very complete for important things, especially in the context of networked services. So the default is that you don't have to pull in many libraries for common needs.
- scubbo 3y ago> The Go std lib is very complete for important things Important thing like sets[0], or get-with-default from maps[1], or enums[2], or appending-to[3] or mapping-over[4] slices? [0] https://stackoverflow.com/questions/34018908/golang-why-dont-we-have-a-set-datastructure/34020023#34020023 https://stackoverflow.com/questions/34018908/golang-why-dont... [1] https://www.digitalocean.com/community/tutorials/understanding-maps-in-go#checking-existence https://www.digitalocean.com/community/tutorials/understandi... [2] https://stackoverflow.com/questions/14426366/what-is-an-idiomatic-way-of-representing-enums-in-go https://stackoverflow.com/questions/14426366/what-is-an-idio... [3] https://go.dev/tour/moretypes/15 https://go.dev/tour/moretypes/15 [4] https://stackoverflow.com/questions/71624828/is-there-a-way-to-map-an-array-of-objects-in-go/71624929#71624929 https://stackoverflow.com/questions/71624828/is-there-a-way-...
- MrDresden 3y ago> This is why I like Go and the stdlib. Its very much "do it yourself" unless we are talking about monumental libraries for very specific applications. I took this to mean that Go's stdlib required a lot of 'do-it-yourself' implementations.