list literal gotcha and suggestion

Tim Peierls tim at
Wed Oct 7 15:59:01 PDT 2009

On Wed, Oct 7, 2009 at 3: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).

I would very much like to have set literals, and I still like the submitted
proposal as it stands. The original post in this thread raised a valid
issue, but the responses have gone a bit overboard in trying to address it.


More information about the coin-dev mailing list