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

Explicit precedence of expressions #3

Closed
stasm opened this issue Jan 4, 2017 · 0 comments
Closed

Explicit precedence of expressions #3

stasm opened this issue Jan 4, 2017 · 0 comments
Assignees
Milestone

Comments

@stasm
Copy link
Contributor

stasm commented Jan 4, 2017

Goal

Give users more control when working with lists.

Description

We want to allow list-typed selectors in select-expression which would lead to ambiguous syntax in constructs like { LIST(foo, bar, baz -> … )}. A work-around currently exists:

{ LIST(foo, "{bar, baz -> … }")}

I suggest we introduce explicit syntax for grouping which will instruct the parser unambiguously about the order of expressions. The proposed syntax is { … } for grouping:

{ LIST(foo, {bar, baz -> … })}

Discussion

https://groups.google.com/forum/#!topic/mozilla.tools.l10n/YBNCSp7J0zU

@stasm stasm modified the milestone: 0.2 Jan 19, 2017
@stasm stasm changed the title Explicit precendence of expressions Explicit precedence of expressions Jan 20, 2017
@stasm stasm self-assigned this Jan 20, 2017
stasm added a commit to stasm/fluent that referenced this issue Jan 26, 2017
@stasm stasm closed this as completed in 26ec797 Jan 30, 2017
stasm added a commit that referenced this issue Jan 30, 2017
Fix #3. Use { and } for explicit grouping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant