Yes, if you needs lots of different immutable maps as your interface to a library, then the lack of generics is annoying. But the question is, is the immutable map such a common interface, or should your library and abstraction barrier be something else? I am a professional programmer and have prefer abstractions via objects/functions.
Re:Why I’m Frustrated with Go
by 43224gg252 on Sunday July 23, 2017 @08:57AM
(#14832055)
Go also supports libraries.
Go doesn’t really support libraries of data structures and containers, though. You can’t build a library of different kinds of immutable and mutable maps, trees, etc that are reusable – precisely because generics are missing.
This is the opposite of DRY.