Feedback and comments on ARM proposal - resend

Joshua Bloch jjb at google.com
Sat Mar 14 22:31:17 PDT 2009


On Sat, Mar 14, 2009 at 7:55 PM, Howard Lovatt <howard.lovatt at iee.org>wrote:

>
> Instead of writing:
>
> try ( Resource r = new Resource() ) {
>  r.doSomething();
> }
>
> You would write:
>
> final Resource r = new Resource();
> r.doSomething();
>
> This is so much more Java like than the block construct


There is room for disagreement here.  We discussed this extensively at
Google when I drafted the proposal, and we ended up eschewing a
declaration-based approach because there was general agreement that it was
much less Java-like to imbue the closing bracket with such "magical powers."

         Josh



More information about the coin-dev mailing list