Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: diamond operator Date: Wed, 4 Apr 2012 18:15:09 -0700 (PDT) Organization: http://groups.google.com Lines: 29 Message-ID: <9617390.2865.1333588509848.JavaMail.geo-discussion-forums@pbcgg7> References: <2pmx6r31q4.fsf@shell.xmission.com> NNTP-Posting-Host: 69.28.149.29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1333588510 9893 127.0.0.1 (5 Apr 2012 01:15:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 5 Apr 2012 01:15:10 +0000 (UTC) In-Reply-To: <2pmx6r31q4.fsf@shell.xmission.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.28.149.29; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Received-Bytes: 2294 Xref: csiph.com comp.lang.java.programmer:13403 Jim Janney wrote: > Roedy Green writes: >> I was looking over the table of contents of a book about new features >> in Java 7 and came across a reference to the "diamond operator". >> >> It turns out to be simple, but one of the precious bits of Java >> syntactic sugar to make it terser. >> >> http://fahdshariff.blogspot.ca/2011/07/java-7-diamond-operator.html >> >> http://mindprod.com/book/9781849685627.html >=20 > This isn't wrong, but it fixes a problem I never knew I had. Any > competent IDE will expand that for you anyway. It was added to Java to satisfy the whiners who were afraid they might stra= in a finger typing "Ctrl-V" or hitting ENTER on the IDE suggestion. Heaven = help any of those folks should they ever have to actually work for a living= . Not that I eschew the diamond operator myself now that it's here, but I was= n't clamoring for it beforehand. --=20 Lew Diamonds are a girl's best friend. Dogs are a man's best friend. Diamonds c= ost more at first, but don't require feeding, walking, shots, neutering or = spaying, veterinary or funeral bills, housebreaking, orreplacement expenses= for broken goods, and don't have litters. Still, I wish I had a dog.