C# faux amis 3: variable declarations and type patterns

added by DotNetKicks
2/28/2019 2:04:53 PM

2 Kicks, 406 Views

In this, the final article in a series on the potentially deceptive nature of some new features in C# 8, Ian Griffiths shows how using var can sometimes result in better compile-time type checking than using an explicit type. He reflects on the evolution of C#, and what we can learn from this.