Initially Project Coin had enhanced support for collections e.g. list[3]
instead of list.get(3)
and map["hello"] = 27
instead of map.put("hello", 27)
but they were not in jdk7. Are they going to be in jdk8? I could not find a definitive answer for either yes or no.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Brian Goetz briefly mentions list, set, map (and other possible) literals in this post in the Project Lambda mailing list from 30th May:
http://mail.openjdk.java.net/pipermail/lambda-dev/2012-May/004979.html
So to me it seems that even the collection literals won't make it into JDK 8, let alone the get/set/put operators. It's a pity.
Also I do not see anything relating to collection literals or new operators in the list of JDK 8 milestones:
http://openjdk.java.net/projects/jdk8/milestones