JEP 186: Collection Literals

Patrick Wright pdoubleya at
Wed Jan 15 02:19:50 PST 2014

On Wed, Jan 15, 2014 at 10:39 AM, Jochen Theodorou <blackdrag at>wrote:

> if you have a vargs like automatic collection coercion by method
> parameter annotation, then you will have to think about resolving
> overloads. The rules for vargs are somewhat complex already, but vargs
> combined with that needs really careful design.

Yes, but I think we shouldn't rule out ideas such as John's too early. At
this point I'd suggest that practical examples of usage scenarios for
collection literals would be very helpful. In that light, using them as an
alternative to array parameters for varargs is an interesting data point.
The canonical
List<Integer> v = [1,2,3]

doesn't tell us as much about how or where the feature would actually be

More information about the lambda-dev mailing list