Re:Seven years of Go
by weberc2 on Thursday November 10, 2016 @05:17PM
(#12925024)
Probably like this: https://gist.github.com/ParthDesai/5e0f1d4725a644f1e632
[ Parent
| on HN ]
Wow. That seems very complicated for an implementation of map().
It seems like this is a perfect example of how generics are a productivity feature.
It's complicated because the reflect library is very general. There's no need to repeat most of this. So in fact, it's a perfect example of how functions are a productivity feature.