Closed
Description
A few issues were raised by @gibson042 in #529 (review) that we ought to consider and address:
- use of
reserved-statement
as interchangeable with a.match
head rather than a full substitute for.match
with its variants - requiring
reserved-statement
to end with a list of expressions, precluding e.g..strict true
- ...and greedy consumption fails to capture the intuition of multiple statements in e.g.
.strict true .local $var = {|val|}
, instead parsing that as a single reserved statement subsuming the.local
- ...and greedy consumption fails to capture the intuition of multiple statements in e.g.
- reusing the
reserved-annotation
reserved-body
forreserved-statement
, precluding e.g..something opt1={$var} opt2={$var}
because of the intent to prohibit e.g. nested expressions in annotations like{@reserved {|…|}}