4 ms·
Constraining Complexity in Go Generics
- Merovius 3y agoA supplementary post to my talk at GopherConAU 2023, about a design problem with NP-completeness encountered in the discussions about Go generics.
- lukasschwab 3y agoIt's a good post, super clearly explained. I have to admit it makes me a little nervous about the future of Go packages — of course interfaces aren't intrinsically bad, but omitting them in early versions of the language discouraged reflection and walled out a good deal of this complexity (in exchange for verbosity). I wind up feeling grateful for simple interfaces, especially the ones disseminated in the standard library.