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

✨ Function optional arguments #124

Closed
Ph0enixKM opened this issue May 28, 2024 · 3 comments · Fixed by #260
Closed

✨ Function optional arguments #124

Ph0enixKM opened this issue May 28, 2024 · 3 comments · Fixed by #260
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Ph0enixKM
Copy link
Member

Add optional arguments to functions. Here is an example syntax:

fun foo(arg1, arg2 = false) {
  // Code
}

If no value is provided, then the values automatically default to what was assigned in the function parameters

@b1ek b1ek added enhancement New feature or request good first issue Good for newcomers labels May 29, 2024
@b1ek b1ek added this to the Stable release milestone May 29, 2024
@ramseyharrison
Copy link
Contributor

Is this issue still available? I think I'd be able to complete it.

@Mte90
Copy link
Member

Mte90 commented Jun 28, 2024

It it still open :-) @ramseyharrison

@ramseyharrison
Copy link
Contributor

Here's a pull request regarding the feature, let me know what you think when you get the chance.
#260

@Ph0enixKM Ph0enixKM linked a pull request Jul 1, 2024 that will close this issue
@b1ek b1ek closed this as completed in #260 Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants