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

Require one variant to be the default #1

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

Require one variant to be the default #1

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

Comments

@stasm
Copy link
Contributor

stasm commented Jan 4, 2017

Goal

Guarantee that a select-expression always evaluates to a string.

Description

Placeables can contain select-expression whose value should always be a string. We can enforce this by requiring one of the variants to be the default using the * syntax.

The member-list class in the BNF grammar is used both for traits and variants. We will likely want to introduce a new class: variant-list.

Discussion

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

@stasm stasm modified the milestone: 0.2 Jan 19, 2017
@stasm stasm self-assigned this Jan 20, 2017
stasm added a commit to stasm/fluent that referenced this issue Jan 20, 2017
This is based on @spagy's pull request in l20n/spec:
l20n/spec#10
stasm added a commit to stasm/fluent that referenced this issue Jan 25, 2017
This is based on @spagy's pull request in l20n/spec:
l20n/spec#10
@stasm stasm closed this as completed in #13 Jan 25, 2017
stasm added a commit that referenced this issue Jan 25, 2017
Fix #1. Require one variant to be default.
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