Y
Hacker News
new
|
ask
|
show
|
jobs
by
weberc2
3508 days ago
Probably like this:
https://gist.github.com/ParthDesai/5e0f1d4725a644f1e632
1 comments
wtetzner
3508 days ago
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.
link
weberc2
3508 days ago
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.
link
wtetzner
3502 days ago
I would argue it's both.
link
It seems like this is a perfect example of how generics are a productivity feature.