diamond operator & implementation strategies (v3)

Stephen Colebourne scolebourne at joda.org
Sat Aug 22 02:32:34 PDT 2009

Funnily enough, my first question given there was a choice of options 
was which would be better for the future. So far, I'm hearing "complex", 
so my vote would currently tend that way.

Neal Gafter wrote:
> I believe there are situations that they give different, incompatible
> results.  The "complex" method is currently (Java 5 and later) used for
> inference of method type arguments, so the language and compiler must
> implement it already.  I feel it's better to have one inference algorithm
> rather than two.
> On Fri, Aug 21, 2009 at 12:54 PM, Paul Benedict <pbenedict at apache.org>wrote:
>> Maurizio and all,
>> Do you believe that the "simple approach" is a subset of the "complex
>> approach"? For the changes recommended regarding the JLS, I hope they would
>> nicely pave the way for the complex approach later on. It would be a shame
>> if these type-inference rules cornered javac from later expanding its
>> rules.
>> Paul

More information about the coin-dev mailing list