Closures for the Java Programming Language (aka BGGA)
Current prototype:
http://www.javac.info/closures.tar.gz
(updated 2008-05-11) Please send bug reports to
Neal Gafter
Doug Lea's jsr166y fork-join framework:
without function types
and
with function types.
Get the code here.
Current specification:
Closures for the Java Programming Language (v0.5)
Draft consensus JSR proposal
A definition of closures
1-hour talk about the specification
2-hour talk with Q&A
Open issue list:
Closures: Open Issues (v0.5)
Java Closures Tutorial from Zdenĕk Troníček
Introduction
Closures
Function Types
Local Variables
Covariant return and contravariant arguments
Closure Conversion
Exceptions
Advanced Features
Closures Sources
Completion Transparency
Usage
Control Abstraction and Restricted
Method references
Method references (Implementation Issue)
Some explanations:
Why doesn't
return
yield a result from the innermost closure?
Neal's comments on the ongoing debate.
Creating user-defined loop abstractions.
Concurrent loops.
A brief discussion of "Unreachable" (now renamed to "Nothing").
Google's position regarding closures