jlelse's Blog

Thoughts, stories and ideas

Generics in Go

Published on in 🔗 Links
Short link: https://b.jlel.se/s/39b
Share 

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