Go 1.27 Generic Methods: The Helper Package I Finally Deleted
Go 1.27 lets methods declare their own type parameters. I converted a 14-function helper package, hit the interface rule that still says no, and reverted…
Go 1.27 lets methods declare their own type parameters. I converted a 14-function helper package, hit the interface rule that still says no, and reverted…
I wrote the same map helper four times before using Go generics. Where type parameters earn their keep, where I backed them out, and what…
Go generics turned four. Here's where I actually reach for type parameters in real Go code, the constraints I lean on, and the patterns I…
Four years into Go generics, here is what I actually reach for in production, the constraints I write, and the patterns I quietly stopped using.
Three TypeScript generics patterns I actually use in production code, plus the places I learned to delete the generic and what I write instead.