| > Less readable code Maybe it is because we are used to our own paradigms, but the following is no less readable to me because of inference. And these are the 95% of cases. var index = 0;
var name = "pwaivers";
var names = new List<string>();
var nameMap = new List<string, Dictionary<int, Address>>();
> more bugsI have never seen a bug arise because of type inference. Do you have an example? > unnecessary burden on the compiler The compiler does a lot of work and this would probably be insignificant to add to it. However, I am totally open to learning more about this. |
*Edit: I'm absolutely a fan of the var syntax, having dabbled with scala. I'm just expressing what I think the original author's complaint is.