Re:Generics enabled by default in Go tip
by mountainriver on Saturday August 21, 2021 @12:27AM
(#28254189)
I didn’t need generics till I wrote a mathematical library, and wow they would be handy
[ Parent
| on HN ]
I've used templates in C++ to do that and I agree that it is handy. I had to write far fewer functions than I would have without them. Sometimes, it's nice to not care or worry about how many bits are in a number.