You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that generic (a.k.a. type parameters support) is well underway in the upstream Go (dev.typeparams branch) and is likely to be included in 1.18. Which means GopherJS also needs to support this, ideally at the same time as Go 1.18, which I expect is a lot of work. Does anyone have even approximate sense of what it would take to support generics? @flimzy@dmitshur@neelance.
For now, I'm filing this issue to look for a volunteer (or several) to contribute this support. By myself I almost certainly won't be able to implement this, considering that we have several other important features from earlier releases to take care of, such as modules and embed.
Important TODOs:
Re-enable encoding/xml tests once generics are supported.
Re-enable checkStringParseRoundTrip() in net/netip/fuzz_test.go.
Remove compareSlices() override in go/doc/doc_test.go.
Re-enable TestIssue50208 in reflect package.
Verify pointers to arrays are wrapped correctly in generic functions.
It appears that generic (a.k.a. type parameters support) is well underway in the upstream Go (dev.typeparams branch) and is likely to be included in 1.18. Which means GopherJS also needs to support this, ideally at the same time as Go 1.18, which I expect is a lot of work. Does anyone have even approximate sense of what it would take to support generics? @flimzy @dmitshur @neelance.
For now, I'm filing this issue to look for a volunteer (or several) to contribute this support. By myself I almost certainly won't be able to implement this, considering that we have several other important features from earlier releases to take care of, such as modules and
embed.Important TODOs:
encoding/xmltests once generics are supported.checkStringParseRoundTrip()innet/netip/fuzz_test.go.compareSlices()override ingo/doc/doc_test.go.TestIssue50208inreflectpackage.