list literal gotcha and suggestion

Neal Gafter neal at gafter.com
Tue Oct 6 10:38:27 PDT 2009


On Tue, Oct 6, 2009 at 9:45 AM, Reinier Zwitserloot <reinier at zwitserloot.com
> wrote:

> Nobody has yet answered my original question:
>
> What does:
>
> System.out.println({{1, "One"}, {2, "Two"}});
>
> print? Looking at visual basic for syntax advice is not a good idea.
>

I suggest that it be a compile-time error because the initializer isn't
converted to some appropriate collection type in the source.



More information about the coin-dev mailing list