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 MultiIndexExpr
IndexListExpr
node type is the most significant change, but felt cleanest of the alternatives we considered.
Any feedback is appreciated.
CC @griesemer
Changelog:
TParams
fields were renamed toTypeParams
MultiIndexExpr
was renamed toIndexListExpr