Skip to content

Arguments as structs? #34

Description

@nikis05

Currently arguments are represented as a tuple of name and value. I think they should be refactored as structs.
Arguments:

  1. Convenience of use, less re-typing same type signature. Named fields provide a more readable notation;
  2. Improved consistency with the rest of API, where most of the nodes are represented as structs or enums;
  3. Being able to read the position of an arg, which is currently impossible.

If you find it reasonable I can do a PR

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