Re: My lambda leftovers

2017-10-06 Thread Brian Goetz
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

Re: My lambda leftovers

2017-10-06 Thread Mark Raynsford
On 2017-10-06T13:16:19 +0200 Remi Forax wrote: > > - allow void to be converted to Void (by returning null) > This may not be *too* bad as long as it's strictly limited to Void, because presumably a compliant program should never have had an observable non-null value of

My lambda leftovers

2017-10-06 Thread Remi Forax
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 I think we have already discussed informally about this one. The compiler should allow to have a