Implicit switch exceptions (was: [switch] Status of implementation of switch expression)

John Rose john.r.rose at oracle.com
Tue Feb 27 22:36:03 UTC 2018


On Feb 27, 2018, at 2:33 PM, Brian Goetz <Brian.Goetz at Oracle.COM> wrote:
> 
> Scala uses MatchError (extends RuntimeException) for this.

I think we could just steal that.  And maybe class
SwitchCaseNotFoundError extends MatchError,
or is that too much splitting?

— John


More information about the amber-dev mailing list