Do more with patterns in C# 8.0(blogs.msdn.microsoft.com) |
Do more with patterns in C# 8.0(blogs.msdn.microsoft.com) |
However (and maybe I'm alone here) the property and positional patterns syntax just honestly isn't very intuitive to me. It may be that because its a new feature it is just alien to me but nonetheless it is really hard to immediately discern what is happening in those examples without having read the descriptions that accompany them. I'm worried C# is on an ever-creeping path to looking like an alien language, as is (in my opinion) what is happening to C++ (e.g.: C++14 and C++17 features).
Now all we need is structural typing like golang so I don't have to explicitly tell the compiler that a class implements an interface.