News for hackers. Stuff that matters.
Re:A New Go API for JSON by c-hendricks on Thursday November 05, 2026 @04:08PM (#50384475)
What was the solution before go had generics? I thought it was nil pointers.
Re:A New Go API for JSON by throwaway894345 on Thursday November 05, 2026 @04:20PM (#50384611)
I don’t think there was a single canonical solution, but pointers to everything was a pretty common one. Everything in the AWS SDK was a `string` or a `float64` or similar—it was exceedingly annoying, not least of all because it basically forced tons of unnecessary allocations.