Hacker News new | ask | show | jobs
by grey-area 1652 days ago
You certainly might use them to write a facade which made life easier for consumers of the math pkg and accept floats,ints or uints even if behind the scenes it splits into different implementations.
1 comments

I would not be very happy if every time I called math.Min, I was also, under the hood, calling reflect.TypeOf.
The whole point of generics is to avoid this - why do you think you would have to use reflection?