list literal gotcha and suggestion

Neal Gafter neal at
Wed Oct 7 13:12:04 PDT 2009

On Wed, Oct 7, 2009 at 12:49 PM, Reinier Zwitserloot <
reinier at> wrote:

> I've only seen serious opposition to dumping set literals from one or
> two voices. As far as I can remember, we were pretty solidly
> converging on the idea of having just map and list literals, with a
> toSet() method to address places where you'd rather have a set, and
> adding in static factory methods to HashSet and ArrayList, which would
> create mutables (the literals create immutables).

Reinier: if you're running this JSR, it would be instructive to see your
summary of the expert group's vote count on both sides of the issue, and
your proposed draft spec.

More information about the coin-dev mailing list