My lambda leftovers
Brian Goetz
brian.goetz at oracle.com
Fri Oct 6 14:04:40 UTC 2017
On 10/6/2017 7:16 AM, Remi Forax wrote:
> Hi all,
> The JEP 302 list some improvements but I think some are missing, obviously, it's up to debate :)
>
> So here is my list of left leftovers:
> - support throw statement as a lambda expression
More generally, we want to handle throw as an expression in at least
some contexts. Lambdas are one; here's another:
Foo f = switch (target) {
case A -> foo1;
case B -> foo2;
default -> throw new WrongFooException();
}
More information about the amber-spec-experts
mailing list