News for hackers. Stuff that matters.
Re:Crimes with Go Generics by cttet on Monday April 25, 2022 @04:40AM (#31151919)
The core difference is that structs are static. Once a struct is defined the type are fixed. "composite types" here refers to type that can be dynamically changed when you annotate them. i.e. if you have an custom array type, you can compose them on the fly with MyArray[int] or MyArray[MyCat], structs can't do that.

There are no comments on this comment yet.