list literal gotcha and suggestion

Adam Malter amalter at illegalcheese.com
Wed Oct 7 16:16:31 PDT 2009


Really?

http://www.google.com/codesearch?hl=en&lr=&q=ImmutableList.of|ImmutaleSet.of|ImmutableMap.of|Arrays.asList\(\w%2B,\w%2B+lang:java&sbtn=Search

Seems like all sorts of configuration/static data/quick and
dirty/unittest/mock/etc types of syntax would benefit.

On Wed, Oct 7, 2009 at 7:02 PM, Lawrence Kesteloot <lk at teamten.com> wrote:
> On Wed, Oct 7, 2009 at 3:59 PM, Tim Peierls <tim at peierls.net> wrote:
>> I would very much like to have set literals
>
> Can you give me an example of how you'd use set literals? I still have
> yet to see a single concrete example of how someone would use list,
> map, or set literals in a real program.
>
> Lawrence
>
>



More information about the coin-dev mailing list