In my last blog entry, i've said it was time to discuss
about the BGGA closure syntax. So here is my proposed syntax.
The closure syntax
There are two parts in a closure syntax, the first one defines the
closure type, the second one defines the expression
(not a statement) of the closure.
By example, with a BGGA closure { int x => x+2 },
the expression part is x+2.
BGGA...
After being frozen more than 3 months,
the BGGA closure dev is resumed,
the sources of the BGGA prototype have been pushed 3 hours ago
by Neal Gafter.
The sources are available in the closure workspace:
http://hg.openjdk.java.net/closures/closures/langtools/
.
Troll: I think it's time to reconsider the syntax to be less
alien or from
mars.