News for hackers. Stuff that matters.
Re:Why I’m Frustrated with Go by kuschku on Sunday July 23, 2017 @08:54AM (#14832037)
But you still have to write the function a hundred times — once each for every immutable map you'll use.

This is the opposite of DRY.

Re:Why I’m Frustrated with Go by _ph_ on Sunday July 23, 2017 @09:56AM (#14832268)
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.
Re:Why I’m Frustrated with Go by kuschku on Sunday July 23, 2017 @10:22AM (#14832378)
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.