BT
rss
Java Follow 1166 Followers

Java 10 Could Bring Upgraded Lambdas

by Abraham Marín Pérez Follow 9 Followers on  Jan 17, 2017 3

A new JEP proposes enhancements to lambda functionality, including better disambiguation, use of the underscore for unused parameters, and shadowing of outer variables. Although these changes would bring lambdas in Java closer to other languages', the community seems divided for now. This JEP complements a series of other proposals to improve the Java language with type inference and better enums.

Java Follow 1166 Followers

Java Enums to Be Enhanced with Sharper Type Support

by Abraham Marín Pérez Follow 9 Followers on  Jan 10, 2017 5

Java enums will be enhanced with generics support and with the ability to add methods to individual items, a new JEP shows. Since both features can be delivered with the same code change, they are bundled together in the same JEP. The change only affects the Java compiler, and therefore no runtime changes are needed. Although there is no target version, Java 10 seems likely.

Java Follow 1166 Followers

Java Type Inference Won't Support Mutability Specification

by Abraham Marín Pérez Follow 9 Followers on  Dec 22, 2016 7

Java type inference won't support differentiation of mutable vs immutable variables due to lack of consensus within the community regarding how this should be implemented, recent communication shows. Also, to prevent a long debate about corner cases, a number of such cases will be ruled out. Although the JEP doesn't indicate a target version, Java 10 seems likely.

BT