Feedback and comments on ARM proposal (original) (raw)
Joshua Bloch jjb at google.com
Sat Mar 14 22:31:17 PDT 2009
- Previous message: Feedback and comments on ARM proposal - resend
- Next message: Feedback and comments on ARM proposal - resend
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Feedback and comments on ARM proposal - resend
- Next message: Feedback and comments on ARM proposal - resend
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]