Open ahuigo opened 9 months ago
Support generic package. Is it possible?
It would be nice to use this famous generic package "github.com/samber/lo"
I find that yaegi doesn't support generic package. The following code shows an error: reflect lo.Assign failed: cannot infer K
yaegi
reflect lo.Assign failed: cannot infer K
$ ./bin/extract github.com/samber/lo $ cat go1_21_github.com_samber_lo.go package pkg import ( "github.com/samber/lo" "reflect" ) func init() { Symbols["github.com/samber/lo/lo"] = map[string]reflect.Value{ "Assign": reflect.ValueOf(lo.Assign), ....
Proposal
Support generic package. Is it possible?
Background
It would be nice to use this famous generic package "github.com/samber/lo"
Workarounds
I find that
yaegi
doesn't support generic package. The following code shows an error:reflect lo.Assign failed: cannot infer K