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

Variable name as field of mapping constructor #400

Closed
jclark opened this issue Jan 23, 2020 · 0 comments
Closed

Variable name as field of mapping constructor #400

jclark opened this issue Jan 23, 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 Jan 23, 2020

In a mapping constructor, it should be possible to use, e.g.:

{ x, y, z }

as a shorthand for

{ x: x, y: y, z: z }

just as you can do in a binding pattern.

This is particularly useful in the select clause of query expressions #398.

This is part of #340.

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