Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe06.iad.POSTED!00000000!not-for-mail From: Thufir Subject: Re: diamond operator Newsgroups: comp.lang.java.programmer References: <8404504.2717.1333650899408.JavaMail.geo-discussion-forums@pbrx1> <4f7f06c6$0$6960$e4fe514c@news2.news.xs4all.nl> User-Agent: Pan/0.133 (House of Butterflies) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: Lines: 28 NNTP-Posting-Host: 184.65.42.92 X-Complaints-To: internet.abuse@sjrb.ca X-Trace: newsfe06.iad 1333729385 184.65.42.92 (Fri, 06 Apr 2012 16:23:05 UTC) NNTP-Posting-Date: Fri, 06 Apr 2012 16:23:05 UTC Date: Fri, 6 Apr 2012 08:51:27 -0700 X-Received-Bytes: 1780 Xref: csiph.com comp.lang.java.programmer:13438 On Fri, 06 Apr 2012 17:07:49 +0200, Silvio Bierman wrote: > Typing is irrelevant. Laving out the left hand type increases > readability by removing redundancy. In a different world your example > could have been > > auto map = new Map>(); > > Any keyword as a replacement for auto would work. While I'm familiar with neither Scala nor Haskell, that seems a bad idea. What happened to the idea of using a, for example, Ferrari interface on a Car instance? Sure, the object is a Car, but that Ferrari interface is used, well, not for convenience per se, but as a reminder that this Car is not *just* a Car. You're suggestion is completely contrary to that principle. While I appreciate that it's easier, I don't get the point. That being said, in Ruby you instantiate with: foo = Bar.new which is quite nice and simple. -Thufir