3 ms·
Depends. If people on the team are using different versions of Visual Studio or the compiler, they will be thankful that they can still build the code. For us,
by ygra 7y ago
Depends. If people on the team are using different versions of Visual Studio or the compiler, they will be thankful that they can still build the code.
For us, the language features we can use internally are dictated by our own compiler to translate the code to JS and Java and yes, a null check is somewhat verbose compared to ?., but in such cases it can be important to restrict the language level, even if you could locally use a newer one. We're also, for compat reasons, building the code on the build server with basically VS 2010 to ensure that there's nothing in it that .NET 4.0 can't handle. Customers can sometimes be very_ conservative and value this kind of thing.
- moron4hire 7y agoYou can set the language level in your project settings. It's under the assembly information.