Allow Generic Attributes #17701
Labels
Area-External
Area-Language Design
Resolution-External
The behavior lies outside the functionality covered by this repository
As explained in this answer by Jon Skeet (also paraphrasing Eric Lippert) it is mentioned, that implementing Generic Attributes should be available in terms of IL - they just aren't used in C#- or actually actively blocked (the compiler doesn't allow them).
Some time has passed since then - from my view it makes sense to bring this idea up again.
The feature of generic attributes adds value because it makes the langue more generic and more flexible.
As an example, this could be:
But with generic attributes it could be like this:
Also, the generic argument would allow me to put constraints onto the type.
I think it's fair to say it would improve the language,
Wheter it's effort is worth it, is obviously desicion of the design team. I think it is.
The text was updated successfully, but these errors were encountered: