by SloopJon · 7y ago · 0 comments
Maybe it's because I've spent so much time in dynamically typed languages, but I see var/auto as absolutely essential to making static typing palatable. I'm a big fan of static typing, but I would be much less so if I had to do it without inference/deduction.
List<String> names = new List<String>();
Why not let people write just: List<String> names = new List();
Why did they even need to invent the diamond operator?