[ prog / sol / mona ]

prog


Go is getting Generics

14 2021-08-24 00:27

Generics are coming!

Generics enabled by default in Go tip

https://go-review.googlesource.com/c/go/+/343732/

We already have some packages coming with this features too.

maps

https://github.com/golang/go/discussions/47330

sets

https://github.com/golang/go/discussions/47331

slices

https://github.com/golang/go/discussions/47203

I'm really excited to this addition. It will make code conciser as we won't need to implement this type of functions ourselves anymore.

17


VIP:

do not edit these