News for hackers. Stuff that matters.
Re:Go generics are not bad by hardware2win on Saturday July 09, 2022 @01:48AM (#32032181)
Please show code then

I dont remember misusing C# generics even once and I struggle to see example of such a case

Re:Go generics are not bad by maxbond on Saturday July 09, 2022 @09:51AM (#32035077)
This is a reasonable request, but I don't really want to write a code example, that feels like a lot of work and I have 0 investment in changing anyone's mind about this (I didn't really expect this to be controversial - I was just sharing my experiences and expanding on Avlin67's comment about "generic hell"), but if you had a question I'd be happy to answer it.
Re:Go generics are not bad by kgeist on Saturday July 09, 2022 @05:57AM (#32033495)
The only example I can think of is the bifurcation non-generic collections vs. generic collections in the early days of C# when you had a non-generic collection and couldn't pass it to a method which expects a generic collection, but it was the consequence of the development history of C# and is not a problem of generics per se.