Sent a bit too early! Below is the missing part.
On Fri, Dec 16, 2016 at 2:25 PM, Staś Małolepszy <[email protected]> wrote:
> My last idea (d) is to remove the implicit list syntax, i.e. { foo,
> bar } being equal to { LIST(foo, bar) }. I wouldn't mind simplifying
> the AST of placeables and making them single-valued. I assume lists
> will be rare and calling the LIST builtin would improve the
> readability by being more explicit. This would allow using { and }
> for grouping, like so: { LIST(foo, { bar, baz -> ... }, qux) }. { and
> } could be
{ and } could be nested many times if needed: { foo } would be the
same as {{ foo }} or even {{{ foo }}}. I wouldn't advertise this as a
feature, just like I don't write my JS with (((1+2))) parens around
everything :) We could also disallow Placeables in other Placeables
making {{ foo }} not legal, and only allow for Placeables in Patterns
and as arguments to CallExpressions: "Foo { bar } Baz" and { LIST({
foo -> ... }) }.
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n