by drewmate · 8y ago · 0 comments
If the latter, C# is gaining some very golang-like attributes. I also noticed the special ‘Range’ keyword and Discarded assignments with underscore. I think this can only be a good thing. C# and go are among my favorite languages to use and the more good ideas they adopt from the other, the better.
https://blogs.msdn.microsoft.com/ericlippert/2011/06/30/foll...
Based on what I have read below, it's implicit; there's very little that the runtime has to know - it happens at compile time, with the compiler looking for a method with the name "Deconstruct" and the right type signature, and plugging that in during the compile.
The compiler already does a lot of heavy lifting codegen for language features like async / await
https://andrewlock.net/deconstructors-for-non-tuple-types-in...
http://www.techcartnow.com/new-c-sharp-7-features-in-action-...