Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!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 02:13:24 +0100 Lines: 19 Message-ID: References: <16628826.552.1320619468157.JavaMail.geo-discussion-forums@prlm15> <4eb72b3a$0$285$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Trace: individual.net WwiW82qBOj7laKh4GVg0KQeQ2d6vV0GXRILuGIvDDWST4xhlsK Cancel-Lock: sha1:22u6ofobUwep9/X1wtjtiI0+vbY= User-Agent: Microsoft-Entourage/12.31.0.110725 Thread-Topic: Immutable Datastructures with good Sharing Thread-Index: Acyc6nJAYUqWQ+zaGEqbI1afPEilFw== Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9715 On 11/7/11 1:50 AM, in article 4eb72b3a$0$285$14726298@news.sunsite.dk, "Arne Vajhøj" wrote: > That particular argument is somewhat obsolete with Java 1.7. > I haven't looked into Java 1.7 yet, enlighten me please? :) > And I am not so sure that avoiding typing is a good goal in > programming, but that is a different discussion. > I was referring to doing/specifying the same thing twice which is not the same thing as avoiding typing. The whole point is not avoid typing but: 1) avoid specifying the same thing twice 2) avoid making mistakes 3) while at it, having the code a lot more readable. 4) easier to maintain e.g. changing N declarations once rather than 2*N