3 ms·
Var makes refactoring way easier while being just as safe and informative.
by jayd16 9y ago
Var makes refactoring way easier while being just as safe and informative.
- ionised 9y agoHow?
- jayd16 9y agoYou can change concrete types of methods without refactoring variable declarations. For example ,its nice when dealing with collections without referencing them as an interface. You might think "whats so wrong with using the interface as the declared type?" In C# you can run into issues with using interfaces as things like enumerators are objects in the interface but concrete types can use optimized structs.