|
|
|
|
|
by tryfinally
970 days ago
|
|
It’s an extraordinary feature that is only intended for optimization of edge cases. Making the feature verbose and somewhat ugly to use seems like an intentional choice. This way if a beginner comes across this “confusing/weird looking” code they can look up the attribute and see what it does, whereas a more convenient/native syntax would be less recognizable and noticeable. This is similar to the idea that you should make ugly APIs ugly to use (to avoid giving users a false sense of security). |
|
It seems to me the budget for C# lang dev is way down. This seems like it was implemented this way so they didn't have to change many internals.