Proposal: Type inference for variable definition/initialization using the 'auto' keyword.

Mark Thornton mthornton at
Mon Apr 6 14:31:32 PDT 2009

alex wrote:
> Hi Tim,
> a little bit late comment...
> what if 
> Map<String, List<String>> anagrams();
> compiled as
> Map<String, List<String>> anagrams = new HashMap<String, List<String>>();
Why HashMap and not some other implementation of Map? That approach only 
works if the LHS specifies a concrete type and not an interface or 
abstract class.

Mark Thornton

More information about the coin-dev mailing list