5 ms·
For a Math.max function you would normally have generic comparables and implement on that. Go makes you implement max and min in all your codebases.
by peterbraden 7y ago
For a Math.max function you would normally have generic comparables and implement on that.
Go makes you implement max and min in all your codebases.
- takeda 7y agoSame with float, if you for some reason need to use float32, tough luck. Makes you wonder why even have types that aren't supported by the standard lib.