Online presence of Mridul
Archives
« September 2006 »
SunMonTueWedThuFriSat
     
1
2
3
5
6
7
8
9
10
11
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
       
Today
XML
Search

Links
 

Today's Page Hits: 87

« Previous day (Sep 2, 2006) | Main | Next day (Sep 4, 2006) »
20060904 Monday September 04, 2006
Closures in JDK7 ?
A very clear and concise post by Neal Gafter on the use , differences and benifits of closures here.
When I read the initial proposal , it was slightly confusing.
I felt that the return syntax smelt like goto's , ability to access non-final local variables was worrisome , etc.
The ideas on the last two posts (here and here) are very instructive and clarify things quite a bit.
The synchronous usecase is something I have tried time and again to solve within my code - usually inefficiently with hacked up callbacks : closures would be a much more cleaner fix for this problem.


posted by mridul Sep 04 2006, 03:48:34 AM IST Permalink Comments [6]