Skip to content

Instantly share code, notes, and snippets.

View arvenil's full-sized avatar
💻
Looking for project

Kamil Dziedzic arvenil

💻
Looking for project
View GitHub Profile
@sorenvonsarvort
sorenvonsarvort / golang-1.13-will-support-generics.md
Last active March 28, 2021 15:43
golang-1.13-will-support-generics

Golang 1.13 Will Support Generics

Every developer knows generics support is the most wanted feature in any major programming language. A few months ago Rob Pike had already approved several Golang proposals, one of them included the new generics feature. This decision is made not only for engaging more developers to the community, but also for boosting existing projects and scaling their codebases.

https://go.googlesource.com/proposal/+/master/design/go2draft-contracts.md

According to it the generics in Golang are based on the contracts and have a pretty familiar syntax. Here are some examples: