Jan-Lukas Else

Thoughts of an IT expert

Generics in Go

Published on in 🔗 Links
Short link: https://b.jlel.se/s/39b
⚠️ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

As someone who properly learned to program using Java and still works with Java almost every day, I am used to generics. Flexible parameters whose constraints do not yet have to be set during definition. The fact that there are no generics in Go took some getting used to.

But it seems that could change in the not too distant future. After years of discussions, the Go team has created a proposal that introduces generics into Go. With Go 1.18 it could be finally implemented.

More info in the proposal and blog entry.

https://blog.golang.org/generics-proposal

Tags: ,

Jan-Lukas Else
Interactions & Comments