News for hackers. Stuff that matters.
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
Re:Generics enabled by default in Go tip by _wldu on Saturday August 21, 2021 @12:34AM (#28254219)
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.