Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19157

Re: locals es loco?

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: locals es loco?
Date 2012-10-05 15:38 -0700
Organization Canadian Mind Products
Message-ID <d4ou68httuofe5k9vm2vk77mv4n7nq4j8t@4ax.com> (permalink)
References <4b5511c5-799d-4469-9502-cdc39491234b@googlegroups.com> <0n1t68lu75vll0319kj7v8p1i3hc9v8re3@4ax.com> <af02a6e4-d92f-48de-b52e-8953c948a77b@googlegroups.com>

Show all headers | View raw


On Fri, 5 Oct 2012 10:55:20 -0700 (PDT), Lew <lewbloch@gmail.com>
wrote, quoted or indirectly quoted someone who said :

>
>For example, the second form allows the variable to be 'final'.

So can the first.  I do it all the time. I like to insert final every
possible place it can go. 

The compiler is quite clever about detecting missing initialisation
code.  For example if you declare prior to a switch for example, the
compiler will complain if you forget to initialise it in one of the
cases.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The iPhone 5 is a low end Rolex. 

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

locals es loco? bob smith <bob@coolfone.comze.com> - 2012-10-04 07:50 -0700
  Re: locals es loco? markspace <-@.> - 2012-10-04 08:09 -0700
  Re: locals es loco? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-10-04 11:45 -0400
    Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-04 12:01 -0700
  Re: locals es loco? Roedy Green <see_website@mindprod.com.invalid> - 2012-10-05 00:06 -0700
    Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-05 10:55 -0700
      Re: locals es loco? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2012-10-05 19:01 +0000
        Re: locals es loco? Lew <lewbloch@gmail.com> - 2012-10-05 12:41 -0700
      Re: locals es loco? Roedy Green <see_website@mindprod.com.invalid> - 2012-10-05 15:38 -0700

csiph-web