Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make function arity missmatch exception more informative #1283

Open
mschoeb opened this issue Jan 8, 2025 · 0 comments
Open

Make function arity missmatch exception more informative #1283

mschoeb opened this issue Jan 8, 2025 · 0 comments

Comments

@mschoeb
Copy link
Collaborator

mschoeb commented Jan 8, 2025

If we call a function with the wrong amount of arguments it just says “Entered function name and arity doesn't match a defined function signature: "abs" called with 2 parameters.” It would be nice if it were maybe something like “expected 1 but got 2 arguments”

In addition, if some arity is not yet implemented then we could catch that and write that, like matches with arity 3 is not yet implemented. This could also be a good way to keep track which functions are already implemented and which are still missing

@mschoeb mschoeb changed the title Make function arity missmatch exception more concrete Make function arity missmatch exception more informative Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant