Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 12 Jan 2012 09:50:49 -0600 Date: Thu, 12 Jan 2012 07:50:46 -0800 From: Patricia Shanahan User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Curious compiler warning References: <1YqdnV__oobHEpPSnZ2dnUVZ7sudnZ2d@giganews.com> In-Reply-To: <1YqdnV__oobHEpPSnZ2dnUVZ7sudnZ2d@giganews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Lines: 20 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 75.11.53.36 X-Trace: sv3-gPmYC4FQeBHduAhLAQTAi62vhip5Y8qdFk2DqROWcXeijiC+vS7QfuFZX726T59gDWT7QDmPrWMBZ5y!DM1bmo/Tdlxd2WkXDLo3QM14CkjAfV+s+TGH6SrrbEXARpteC9OEOXDX0js3YbfrePl28r5DOv8Z!qXIcZpV7iIrGkojMGkT/PoaudPX8Vw/eevCVqSgHtB8= 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: 2304 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11268 On 1/11/2012 11:44 PM, Leif Roar Moldskred wrote: > Lew wrote: > >> Next you'll excoriate += as obscure. Sheesh. > > Personally, I never use += and its brethren and I practically only use > autoincrement and -decrement in for loops. Not because I find them > obscure or hard to read, but because I find the long form either > equally or just slightly easier to read, so why use two different > syntactic constructs when a single one gets the job done just as well? > I regard a program both as communication from me to the compiler, and from me to any programmer, myself included, who might read the program in the future. If my thought is "increment x", I prefer "++" because, of the available ways of adding one to x, it most directly reflects my intent. Patricia