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

Positional parameters cannot have defaults #26

Closed
jclark opened this issue Mar 24, 2019 · 0 comments
Closed

Positional parameters cannot have defaults #26

jclark opened this issue Mar 24, 2019 · 0 comments
Labels
Area/Lang Relates to the Ballerina language specification design/usability Design does not work well for some tasks
Milestone

Comments

@jclark
Copy link
Collaborator

jclark commented Mar 24, 2019

At the moment the spec does not allow positional parameters to have a default and so be optional. This is a bit limiting for API design, especially given that function overloading is not allowed.

@jclark jclark added Area/Lang Relates to the Ballerina language specification design/usability Design does not work well for some tasks labels Mar 24, 2019
@jclark jclark added this to the 2019R1 milestone Mar 28, 2019
jclark added a commit that referenced this issue Apr 1, 2019
@jclark jclark closed this as completed Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Lang Relates to the Ballerina language specification design/usability Design does not work well for some tasks
Projects
None yet
Development

No branches or pull requests

1 participant