Proposal: Collection Literals

Joshua Bloch jjb at google.com
Tue Mar 31 01:51:57 PDT 2009


Mark,
Presumably you'd be happy to replace them with lists of sets, and then you
could use (nested) collection literals?

        Josh

On Tue, Mar 31, 2009 at 1:47 AM, Mark Thornton <mthornton at optrak.co.uk>wrote:

> Joshua Bloch wrote:
>
>> Neal,
>>
>> In other words, we could prohibit set literals in array initializers.
>> Arrays of sets are an awful idea anyway, so it's no great loss.
>>
> Ouch, I have a few of those. Invariably where the universe of unique sets
> is very small and the array contains all of them.
>
> Regards,
> Mark Thornton
>



More information about the coin-dev mailing list