Tuesday, 8 September 2009

Collection Literals in Java 7

Today I read the final list of the Project Coins - the accepted list of Java language enhancement proposals for Java 7. The goal of one of them is to introduce collection literals for List, Set and Map. Probably it will be more convenient to build simple collections with them, but why to bind Java language (through JLS) with java.util.List and its friends? One may say that java.util.* is part of the JDK anyway. For me it's not enough justification for that step which looks more like an attempt to patch Java deficiencies with more or less weak solution. Unfortunately, the backward compatibility requirement doesn't allow to take a better one. I would be happy if I never saw this in Java language.

0 komentarze: