Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Giovanni Azua Newsgroups: comp.lang.java.programmer Subject: Re: Immutable Datastructures with good Sharing Date: Mon, 07 Nov 2011 11:22:33 +0100 Lines: 27 Message-ID: References: <16628826.552.1320619468157.JavaMail.geo-discussion-forums@prlm15> <9709923.273.1320629370704.JavaMail.geo-discussion-forums@prhp27> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net ACb1N0Mc4PMg7S21u89eBw6L2QpBpJ2ci8QZUy6mwa7DJ3lku1 Cancel-Lock: sha1:mS/uvBTNV2OzMTIqwtXHuklqZwY= User-Agent: Microsoft-Entourage/12.31.0.110725 Thread-Topic: Immutable Datastructures with good Sharing Thread-Index: AcydNylirdS1lb48GkuQPK4UzGkFpQ== Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9730 On 11/7/11 2:29 AM, in article 9709923.273.1320629370704.JavaMail.geo-discussion-forums@prhp27, "Lew" wrote: >> I don't blame you. I had the same resistant first reaction when I was >> proposed to use Guava. Then something magical happened :) I realized that >> when you use new with Collections, generally you have to tell the compiler >> two times what you want namely the generic parameter. I think that having to >> do the same thing two times in development is always a bad thing: two times >> harder to maintain, two times the amount of possible mistakes and in short, >> two times the amount of work. > > The diamond operator mitigates that, and the two characters of it are smaller > than the overhead of pulling in a whole other class. > Excellent, same idea but built in the language doesn't seem such a silly concept after all. > I think pulling in a whole utility class at runtime because you're too lazy to > type two extra characters, or even a dozen, is silly. Roofers are laughing at > your idea of too much work. > When I start using 1.7 then the utility is not needed anymore but you failed to realize the advantage and then you laugh? I laughed too but more about your ignorance :)