Skip to content

Any way to check arity of a procedure? #24

Description

@aartaka

So I tried multiple directions:

  • expand is nice and is an important stage of compilation. But I’m not sure what happens after that and where to insert argument count, if anywhere.
  • Bytecode inspection is a good direction (I’m ready to parse that, if necessary!)
    • However, it’s not clear how to get bytecode for a procedure.
    • Built-in procedures also have argument specs, like '1', '2', 'm', 'b' etc. so these might be fetched somehow?

Any pointers?

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