Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 12 Jan 2012 10:51:19 -0600 From: Leif Roar Moldskred Subject: Re: Curious compiler warning Newsgroups: comp.lang.java.programmer References: <1YqdnV__oobHEpPSnZ2dnUVZ7sudnZ2d@giganews.com> User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (Linux/3.0.0-14-generic-pae (i686)) Message-ID: <6KOdnSOSc68akpLSnZ2dnUVZ8uadnZ2d@giganews.com> Date: Thu, 12 Jan 2012 10:51:19 -0600 Lines: 22 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-uYpHQx2AIt9gaiR10BwWYR4/AiyJ2I5DR6cP8Mq/8OuH1+btefxdyTEiOHxLD0IvZ+JNdkiRSb5gvLw!TfScD4kKFKAUj0ptz4fc02QU0ZkANuaUhIz84bUKlbPT2sxgwFx87n4xWX9vIw6zwCOSUSZCQFg= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2338 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11277 Lew wrote: > So I suppose you never use for-each, 'while' or 'do...while'? You never use > an anonymous class when a named one will do? You won't use closures because > SAMs will do, or vice versa? > > Your little rule that you can only use one form of an expression is limiting > and superstitious. It is nice to see my pessimistic prediction so quickly > validated. Too many folks with ideas like yours here wind up as managers. The key words in my post was really "just as well." Of course I use for-each, while and do loops - because in them I see a benefit. I don't see any benefit in +=, so I don't use it.- It's not a "rule" I have -- I have no problem with other people using them and I'll use them if I ever come across a situation where there's an advantage to them. So far, I haven't seen any reason to use them. It's the same reason why I don't use octal notation in my Java code. -- Leif Roar Moldskred