-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Description
This proposal formally introduces the changes we’ve made to support parameterized functions and types in the go/ast and go/token packages. See the full write-up here:
https://go.googlesource.com/proposal/+/master/design/47781-parameterized-go-ast.md
There will be a separate issue for go/types, where type parameters add a much larger API surface.
We’ve gotten some experience with these new APIs over the last few months by using them in go/types. The additional MultiIndexExprIndexListExpr node type is the most significant change, but felt cleanest of the alternatives we considered.
Any feedback is appreciated.
CC @griesemer
Changelog:
TParamsfields were renamed toTypeParamsMultiIndexExprwas renamed toIndexListExpr
Merovius, mdempsky, mvdan and leitzler