Meeting place of Java professionals

Java playing Catch up?

Maybe yes, maybe not, but make sure you read this white paper written by Gilad Bracha, Neal Gafter, James Gosling and Peter von der Ahé. Here is a snippet:

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.

After you are done reading the whitepaper, follow an interesting debate at Nutrun.com .

Related Entries:
  • Welcome to OJUG
  • VB.Net features on the Java platform?
  • Welcome to Omaha Java Users Group’s New Website
  • Sun expands open-source Java plan
  • About
  • Leave a Comment

    Powered by WP Hashcash