Call for bikeshed -- break replacement in expression switch

John Rose john.r.rose at oracle.com
Thu May 16 19:58:42 UTC 2019


On May 16, 2019, at 12:36 PM, Alex Buckley <alex.buckley at oracle.com> wrote:
> having `yield` as the junior member of that club is quite natural. Putting the junior and senior members side by side shows both similarity and difference:

If junior yield is allowed to help senior return with
his job, we have a more uniform rule:  yield always
matches an arrow.

If junior yield should stay off of senior return's grass,
we have a somewhat less uniform rule:  yield always
matches an arrow, unless the arrow is coterminous
with a method body, in which case return must be
used.

Either way is OK with me, but the more uniform rule
seems to give me more insight into what's really
happening.

— John


More information about the amber-spec-experts mailing list