Feedback and comments on ARM proposal - resend

Jeremy Manson jeremy.manson at gmail.com
Sat Mar 14 22:56:02 PDT 2009


It is probably worth pointing out that the flip side of this in our
discussions was that variables are also block-scoped, so there was
wiggle room for people who believed that this whole issue was secretly
a scoping issue for variables and didn't have anything at all to do
with blocks of code.  <whistles nonchalantly>

Jeremy

On Sat, Mar 14, 2009 at 10:31 PM, Joshua Bloch <jjb at google.com> wrote:
> 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