list literal gotcha and suggestion
Reinier Zwitserloot
reinier at zwitserloot.com
Tue Oct 6 09:45:56 PDT 2009
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.
--Reinier Zwitserloot
On 2009/06/10, at 18:28, Paul Benedict wrote:
> Reinier,
>
>>> Which newly introduced type is flexible enough to be capable of
>>> converting it self both to a List<List<Object>> and to a
>>> List<Integer,
>>> String> given: {{1, "one"}, {2, "two"}}?
>
> Hopefully Neal can clarify. My reading of his words was for the
> compiler, not the type, to have the know-how on the conversion. Did he
> mean a public type? I don't know. It sounds like a type internal to
> the compiler to re-interpret the tokens based on context.
>
> Paul
>
More information about the coin-dev
mailing list