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

Guard built-ins against calling with wrong (too many or wrong name) arguments #12

Closed
nikku opened this issue Aug 3, 2022 · 1 comment · Fixed by #38
Closed

Guard built-ins against calling with wrong (too many or wrong name) arguments #12

nikku opened this issue Aug 3, 2022 · 1 comment · Fixed by #38
Labels
enhancement New feature or request

Comments

@nikku
Copy link
Owner

nikku commented Aug 3, 2022

Built in functions return null when being called with illegal (not defined) arguments:

modulo(4,4,4) = null

At the same time they return null when being called with wrong named arguments:

string join(lst: [ "a", "b" ]) = null
@nikku nikku added enhancement New feature or request interpreter labels Aug 3, 2022
@nikku
Copy link
Owner Author

nikku commented Oct 31, 2023

Partly addressed for undefined (named) parameters via 4ba8f42.

@nikku nikku changed the title Guard built-ins against calling with too many arguments Guard built-ins against calling with wrong (too many or wrong name) arguments Oct 31, 2023
nikku added a commit that referenced this issue Nov 1, 2023
Closes #12


BREAKING CHANGE:

* functions with variable length arguments must use `...` to capture
  variable parts
@nikku nikku mentioned this issue Nov 1, 2023
@nikku nikku closed this as completed in #38 Nov 1, 2023
nikku added a commit that referenced this issue Nov 1, 2023
Closes #12


BREAKING CHANGE:

* functions with variable length arguments must use `...` to capture
  variable parts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant