|
|
|
|
|
by starik36
1483 days ago
|
|
I love it, but then I've been doing C# since the beginning. The language does appear to show its age though. I recently tried teaching it to my kid and realized that it has grown quite a bit of cruft. There are a ridiculous amounts of ways to declare a variable. Employee employee = new Employee();
var employee = new Employee();
Employee employee = new();
And that doesn't even count the initializers {}, records, dynamic, etc... All this makes it difficult for a new develop to jump into it. |
|
The last one is a very recently added shorthand which, honestly, I think was just implemented because an intern needed a feature on master to get hired or something like that... I don't get it either.
1: https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...