Friday, December 15, 2006
Closures in Java 7.0
Introduction to Java Module System in Java 7.0
I am just trying in google to know what is in next version of Java. So many blogs writing about the new feature closures in Java 7.0, a functional programming cocept.
An excerpt from sun blogs:
Modern programming languages provide a mixture of primitives for composing programs. C#, Javascript, Ruby, Scala, and Smalltalk (to name just a few) have direct language support for function types and inline function-valued expression, called closures. A proposal for closures is working its way through the C++ standards committees as well. Function types provide a natural way to express some kinds of abstraction that are currently quite awkward to express in Java. For programming in the small, closures allow one to abstract an algorithm over a piece of code; that is, they allow one to more easily extract the common parts of two almost-identical pieces of code. For programming in the large, closures support APIs that express an algorithm abstracted over some computational aspect of the algorithm. We propose to add function types and closures to Java. We anticipate that the additional expressiveness of the language will simplify the use of existing APIs and enable new kinds of APIs that are currently too awkward to express using the best current idiom: interfaces and anonymous classes.
Java 7.0 Articles
Introduction to Java Module System in Java 7.0
Subscribe to:
Posts (Atom)