Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.netfront.net!not-for-mail From: Wanja Gayk Newsgroups: comp.lang.java.programmer Subject: Re: Inserting In a List Date: Fri, 12 Apr 2013 20:47:06 +0200 Organization: Netfront http://www.netfront.net/ Lines: 38 Message-ID: References: <19un43xj77bua.vw45l4e2wshi.dlg@40tude.net> <7f128eff-7ea1-4cfd-9147-f57af28c931d@googlegroups.com> NNTP-Posting-Host: 77.176.245.185 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1365792262 50729 77.176.245.185 (12 Apr 2013 18:44:22 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 12 Apr 2013 18:44:22 +0000 (UTC) User-Agent: MicroPlanet-Gravity/3.0.4 Xref: csiph.com comp.lang.java.programmer:23432 In article <7f128eff-7ea1-4cfd-9147-f57af28c931d@googlegroups.com>, Lew (lewbloch@gmail.com) says... > > I do find the term "final variable" a bit clumsy though, because in my > > view these are constants. Unfortunately in the Java world, we're calling > > these "constants" only, if they're marked "static". Technically that's > > That is not correct Java terminology. There is nothing in the Java definition > of "constant expression" or "constant variable" that requires a static context. > > http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.28 > > http://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.12.4 > "A variable of primitive type or type String, that is final and initialized with a compile-time constant expression (§15.28), is called a constant variable." Well, Lew, I guess you pretty much understand what I mean, it's the same thing. The term "constant variable" is a moronic oxymoron, it can be either variable or constant. It's like saying "I have a fixed movable device" - no, you haven't, you have a fixed device, by fixing it you have removed the "movable" nature entirely. > It does not say "final, static and ...". I might be used to the terminology used in the Eclipse IDE when you use the refactoring "extract constant" you'll get a static final field. Kind regards, Wanja -- ..Alesi's problem was that the back of the car was jumping up and down dangerously - and I can assure you from having been teammate to Jean Alesi and knowing what kind of cars that he can pull up with, when Jean Alesi says that a car is dangerous - it is. [Jonathan Palmer] --- news://freenews.netfront.net/ - complaints: news@netfront.net ---