spec: Type inference and functional options? #47868
Labels
FrozenDueToAge
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
TypeInference
Issue is related to generic type inference
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
This program fails with the following:
Which makes sense given the scope of type inference in the design. However, I thought I'd file this issue anyway, as functional options are very common in Go and this will make them quite tedious to use in conjunction with generic types:
The issue is phrased as a question in case there is some solution I'm not aware of, or it's just plain out of scope.
PS. Thanks for all the hard work getting it to this stage, it's looking super promising :)
The text was updated successfully, but these errors were encountered: