Re:Go generics are not bad
by dataangel on Saturday July 09, 2022 @01:24AM
(#32032024)
Writing a generic function to sum an array of any numbers type is trivial in C++. There's no 4 day research period, even if you're new to templates.
[ Parent
| on HN ]
Isn't acc and the xs same width here? So you risk overflow?