n the thread about bi-annual syntax review, I listed a number of potential 
problems with the syntax.

In this proposal, I'd like to tackle mainly problem (6).

Summary:

I suggest that we allow for range of selectors to be grouped.
The solution to the example provided in the problem statement would look like 
this:

key = { $num, $gender ->
  [one, masculine] She likes when he dances
  [one, feminine] She likes when she dances
  [other, masculine] They like when he dances
  [other, feminine] They like when she dances
}

It requires small changes to the AST and syntax, since we already support lists 
("key = { $user1, $user2 }") and we only would need to allow a selector 
expression to be a list and keyword key to be a list.

The value is the simplification of the visual clutter.

Additionally, this solution would play nicely with the proposal to allow for 
specifiers (the "Dissolve traits" proposal, part 1):

key2 = { key[one, masculine] }

working for both, nested and flattened nested selectors.

Thoughts?
zb.
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n

Reply via email to