3 ms·
It would objectively have made Golang harder to read. Can we agree on that? People tend to abuse generics.
by baby 7y ago
It would objectively have made Golang harder to read. Can we agree on that? People tend to abuse generics.
- erik_seaberg 7y agoUses of https://golang.org/pkg/sync/#Map https://golang.org/pkg/sync/#Map are objectively harder to read than if they allowed a library to implement a type that conforms to builtin map[K]V. Instead you have to learn method names and cast return values, and builtin maps don't even support those methods.
- baby 7y agoLet’s agree to disagree. Maybe you’re used to reading generics after years of doing it.