[JSR308] Hello, and a comment (closures)

Eugene Kuleshov eu at javatx.org
Wed Jan 31 01:32:17 EST 2007


Neal,

  Since you already here, can you please share your thoughts on 
relationship between JSR 308 and your own proposal for supporting 
closures in Java language [1], which you've been actively advocating in 
your blog [2].

  Thanks

  Eugene

[1] http://gafter.blogspot.com/index.html
[2] http://www.javac.info/


Neal Gafter wrote:
> Just joining the discussion and mailing list, I'd like to introduce 
> myself: Neal Gafter from Google. Please pardon me if I ask dumb 
> questions, as I haven't been listening.
>
> I read the draft spec (and an earlier version), and it seems much more 
> complex than it needs to be to accomplish its goals.  The simplest 
> syntax would be to annotate a type by placing the annotation after the 
> type. This works for arrays, arrays of arrays, return types, argument 
> types, etc without any ambiguity with existing syntax. The selected 
> syntax, on the other hand, does have ambiguities that require 
> special-casing many contexts, such as arrays. Perhaps there is some 
> motivation for the current syntax that I'm missing.




More information about the JSR308 mailing list