New JEP: Switch Expressions for the Java Language

Kevin Bourrillion kevinb at
Mon Dec 18 21:53:24 UTC 2017

Yes, that is how everyone *should* be taught.

Of course, many (many) people end up reading and modifying code without a
whole lot of "teaching" ever having happened. And of course we want to
carefully consider the plight of that developer as we make changes -- I
don't think that is controversial.

Having become aware that `case null` is a thing, from reading it in class
A, it will be pretty reasonable for that developer to assume it's being
handled by the `default` code in class B.

I'll repeat that this isn't a deal-breaker - I just think it matters.

Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amber-spec-experts mailing list