3 ms·
If Go adds generics, that's enough to enable many kinds of higher order functions without copying and pasting or ugly (and slow) reflection. A generic map, red
by Zach_the_Lizard 10y ago
If Go adds generics, that's enough to enable many kinds of higher order functions without copying and pasting or ugly (and slow) reflection.
A generic map, reduce, etc. are what I need. Across the thousands of developers in our organization I'll bet we've implemented "mapString" or "mapObjectThing" dozens of not hundreds of times.
At least we could make a package for non built-ins.
Also lots of interesting generic data types we need across our org that are a pain.
With Java we have some data structure packages that Just Work and don't require copying and pasting.