Take the following snippet:
List distances = new List();
Was the redundancy intended by the language designers? If so, wh
As others have said: var
removes the redundancy, but it has potential negative maintenance consequences. I'd say it also has potential positive maintenance consequences.
Fortunately Eric Lippert writes about it a lot more eloquently than I do: http://csharpindepth.com/ViewNote.aspx?NoteID=63 http://csharpindepth.com/ViewNote.aspx?NoteID=61