Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
grey-area
· 4y ago · 0 comments
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.
Comments
[–]
horsemans
4y ago
I would not be very happy if every time I called math.Min, I was also, under the hood, calling reflect.TypeOf.
[–]
danachow
4y ago
The whole point of generics is to avoid this - why do you think you would have to use reflection?