unicode-org / message-format-wg

Developing a standard for localizable message strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider syntax of `reserved-statement` some more

eemeli opened this issue · comments

A few issues were raised by @gibson042 in #529 (review) that we ought to consider and address:

@stasm:

What's the motiviation for putting reserved-statement inside complex-body? Do we expect other multivariant constructs than match? I think this may be building too much flexibility into the spec. Could we instead agree that any future keywords would go with other declarations?

@aphillips:

I think it was me who asked for reserved-statement to potentially be also a replacement for selectors. This would allow for a different type of selector in future syntax.

Perhaps this should be:

complex-body = quoted-pattern
             / (selectors 1*([s] variant))
              / reserved-statement ; which matches some-newly-unreserved-statement 1*([s] variant) 
                                   ; for some future statement

In another thread we discussed limiting reserved-statement to declarations. I have added this to the 2023-12-04 agenda.