News for hackers. Stuff that matters.
Re:Constraints in Go by jppittma on Sunday November 17, 2024 @09:18AM (#42164296)
The most frequent use case I and my coworkers run into where we use them is when we want type covariance on a slice.

I.e., when you want to write a function that take some slice of any type T that implements interface I, such that []T is a valid input instead of just explicitly []I.

There are no comments on this comment yet.