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

Binding pattern for optional fields #445

Open
jclark opened this issue Feb 29, 2020 · 0 comments
Open

Binding pattern for optional fields #445

jclark opened this issue Feb 29, 2020 · 0 comments
Assignees
Labels
Area/Lang Relates to the Ballerina language specification Type/Improvement Enhancement to language design
Milestone

Comments

@jclark
Copy link
Collaborator

jclark commented Feb 29, 2020

At the moment, you cannot use a binding pattern with an optional field. Seems like we should fix this, with the variable getting bound to () if the optional field is not present.

@jclark jclark added this to the 2020R2 milestone Mar 4, 2020
@jclark jclark added Type/Improvement Enhancement to language design Area/Lang Relates to the Ballerina language specification labels Mar 7, 2020
@jclark jclark self-assigned this Mar 7, 2020
@jclark jclark modified the milestones: 2020R3, 2020R2 Apr 24, 2020
@jclark jclark modified the milestones: 2020R2, 2020R3 Jun 17, 2020
@jclark jclark modified the milestones: Swan Lake dump, Swan Lake + 1 Jan 28, 2021
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 Type/Improvement Enhancement to language design
Projects
None yet
Development

No branches or pull requests

1 participant