Vladimir Vivien Profile picture
I build 🏗 software • Author (Programming in Go https://t.co/qOaDuOZBc3) • RISC-V and ML/AI fanboy
Aug 23, 2020 7 tweets 3 min read
The #golang proposal to introduce generic functions and types (via parametric polymorphism) has been evolving nicely. This 🧵 summarizes what the latest is:

- [] sqr brackets to be used for type param
- type param must have a constraint
- constraint `any` will be new keyword Image Use type constraints to define the set of types that can satisfy type arguments Image