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

[Feature Request] Optional function arguments #271

Open
CorwinMacGregor opened this issue Jul 3, 2023 · 0 comments
Open

[Feature Request] Optional function arguments #271

CorwinMacGregor opened this issue Jul 3, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation feature request New feature or request

Comments

@CorwinMacGregor
Copy link
Contributor

::= ['?'] | '?' '='

for optional argument with default value, no whitespace around the '=' that links the variable name to the default value
(whitespace is reserved for separating arguments in the declaration)

arguments are type-undeclared, therefore should optional arguments be only at the end of the argument list, for ease of processing?
would there be a perceived need for a catch-all argument at the end of the argument list, a collection to contain any unmatched values passed? I've seen this done in another language using their slice notation of '@'

@CorwinMacGregor CorwinMacGregor added documentation Improvements or additions to documentation feature request New feature or request labels Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant