JEP325: Switch expressions spec
Kevin Bourrillion
kevinb at google.com
Mon Apr 30 15:39:10 UTC 2018
On Sun, Apr 29, 2018 at 11:14 AM, Remi Forax <forax at univ-mlv.fr> wrote:
I do not care about double and float, doing == on a double or a float is
> already dubious, but why drop the support for long ?
>
I think the set should be expanded all at once. It's noisy otherwise.
Secondarily to that I argued that it was better to wait and do them all
together with patterns.
> > * Misc smaller changes from community feedback (thanks!)
> >
> > Comments welcomed!
> > Gavin
>
> Rémi
>
> >
> >> On 12 Apr 2018, at 22:27, Gavin Bierman <gavin.bierman at oracle.com>
> wrote:
> >>
> >> I have uploaded a draft spec for JEP 325: Switch expressions at
> >> http://cr.openjdk.java.net/~gbierman/switch-expressions.html
> >>
> >> Note there are still three things missing:
> >>
> >> * There is no text about typing a switch expression, as this is still
> being
> >> discussed on this list.
> >> * There is no name given for the exception raised at runtime when a
> switch
> >> expression fails to find a matching pattern label, as this is still
> being
> >> discussed on this list.
> >> * The spec currently permits fall through from a "case pattern:”
> statement group
> >> into a "case pattern ->" clause. We are still working through the
> consequences
> >> of removing this possibility.
> >>
> >> Comments welcomed!
> > > Gavin
>
--
Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20180430/8909ada6/attachment.html>
More information about the amber-spec-experts
mailing list