News for hackers. Stuff that matters.
Re:Java 7 is now available by makmanalp on Thursday July 28, 2011 @07:08PM (#2819372)
Oh sweet jesus finally collection literals. Why did it take more than 10 years to decide to bring in something so convenient? One reason I sometimes find Java repulsive is the fact that it takes so much redundant code to do something so simple. Why do they hold back on such syntactic sugar?
Re:Java 7 is now available by smcj on Friday July 29, 2011 @05:55PM (#2823971)
Oh god. Please no, collection literals are the worst idea ever. Making up special rules for some special classes in a language? What the fuck!?
Re:Java 7 is now available by lurker14 on Sunday July 31, 2011 @03:50AM (#2827878)
You must be terrified at the presence of numerals and quotation marks in programming languages.

Here's the doc on Collection Literals, BTW.

https://docs.google.com/Doc?id=ddv8ts74_4cbnn5mhj

Collection Literals are actually better than string literals, because they only enforce an interface, not an implemenation.