Link to GitHub issue: https://github.com/dotnet/csharplang/issues/7009
Link to video explaing it: https://youtu.be/91xir2oUQPg
Link to GitHub issue: https://github.com/dotnet/csharplang/issues/7009
Link to video explaing it: https://youtu.be/91xir2oUQPg
Love the implications of this as a compile time alternative for reflection, really hope I never run into it personally though.
I agree, this reminds me of goto
It’s worse, this is literally comefrom
I think the example movie is showing an anti-pattern of the usage. Showing its proper use case would have been much better. In Nick Chapas’ example the code is becoming unreadable. His “Hello world” code is invisibly replaced with something else. This makes it worse than goto. If I ever see one of my colleagues do this, I will have them removed from the team.