Earlier quoted context omitted.
But there is for float64 ;) I think this is a classic case of Go's need for "simplicity" hamstringing the language. When handling min/max, they had a few options: 1) Treat numbers as a special case and have a polymorphic min/max that operates on any number type. This is out of the question because it is obtuse and irregular and neither of those things are the "Go way" 2) Properly abstract over numbers somehow. This c…
yet the "go way" makes computing really tough : x := 1 y := 2.0 z := x + y Error : invalid operation: x + y (mismatched types int and float64) So much that devs end up using float64 everywhere ...
Which makes complete sense given it's webscale enough for nodejs.