Skip to content

Cannot use generic functions based on tensor.DataTypes in yaegi code #14

Description

@rcoreilly

Due to traefik/yaegi#1700 inability to represent generic type constraints in reflect, we cannot use some pretty important generic functions in tensorfs and table:

  • tensorfs.Value (workhorse function; has workaround of specific types defined on Node)
  • table.AddColumn, table.InsertColumn -- have workarounds too.

One possibility is to try to import the type constraint into the yaegi code, but it is not clear that this would translate to the Go compiled version, but maybe? Or just give it an any? will experiment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions