Proposal: Type inference for variable definition/initialization using the 'auto' keyword.
Mark Thornton
mthornton at optrak.co.uk
Fri May 15 13:37:16 PDT 2009
> You're right. These two classes are not statistically significant, but:
> - number of lines where "auto" can be used is always >= the number of
> lines where "diamond" can be used
>
>
Only if you don't follow the common policy of using an interface type on
the left hand side. With that policy 'auto' is unusable.
> OK. I didn't know that Java was designed to explicitly declare the
> type of variables on the left hand side,
> but even if it was, it's worth changing.
>
It allows it and it is a common policy that many have deliberately
chosen to use and recommend.
Mark Thornton
More information about the coin-dev
mailing list