This post originated from an RSS feed registered with Java Buzz
by News Manager.
Original Post: OpenJDK plan would make Java coding easier
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
A new plan proposed for OpenJDK would give Java a local-variable type inference capability so that it's easier to write code while continuing with static type safety.
The measure was proposed earlier this month in JEP (JDK Enhancement Proposal (JEP) 286. Documentation currently does not cite a version of Java where the improvement would be featured.
"We seek to improve the developer experience by reducing the ceremony associated with writing Java code while maintaining Java's commitment to static type safety by allowing developers to elide the often-unnecessary manifest declaration of local variable types," the proposal states. Other statically typed curly braced languages, such as C++, Scala, and Go, already support some variant of local-type inference. "Java is nearly the only popular statically typed language that has not embraced local-variable type inference," the JEP stresses. "At this point, this should no longer be a controversial feature."