Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
kyrra
· 7y ago · 0 comments
If you poke around the files ending with .go2 here[0], you can see some examples of contracts/generics being used. This linked review is a prototype of the implementation for the proposal.
[0]
https://go-review.googlesource.com/c/go/+/187317
Comments
[–]
NiceGuy_Ty
7y ago
This is why even the most basic form of generics would be amazing for reducing boilerplate:
https://go-review.googlesource.com/c/go/+/187317/3/src/go/pa...