News for hackers. Stuff that matters.
Re:Go Should Sometimes Be a No-Go by kgeist on Saturday December 14, 2024 @05:53AM (#42416191)
In our entire codebase, Go's generics have been used, like, 3 times, even though they were introduced almost 3 years ago. It's unsurprising: generics are most useful for writing your own custom containers, and generally, most projects don't need their own custom containers. It felt somewhat anticlimactic, considering all the anticipation.
Re:Go Should Sometimes Be a No-Go by therealdrag0 on Saturday December 14, 2024 @03:04PM (#42419096)
You often don’t need custom containers, but you need containers! I shouldn’t have to write my own custom method to map or for each over a list of items, etc.