3 ms·
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 impl
by kyrra 7y ago
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 https://go-review.googlesource.com/c/go/+/187317
- NiceGuy_Ty 7y agoThis 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/parser/testdata/set.go2 https://go-review.googlesource.com/c/go/+/187317/3/src/go/pa...