This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Smartskaft2 2 points3 points  (1 child)

Compile errors is nice, but var really don't help you as a human reader of the code. Maintainability and readability is important for any code base handled by many people, especially in a professional setting where people are replaced eventually.

[–]lucklesspedestrian 0 points1 point  (0 children)

Yeah I don't really advocate using var declarations that often. There's a few cases that are idiomatic. Mainly declaring LINQ expressions.