System.Reflection.Attribute #4161
Unanswered
I-Omnibus
asked this question in
Language Ideas
Replies: 2 comments 3 replies
-
The only thing stopping you right now is that records can't inherit from non-record types (aside from But what exactly do you believe it buys you to define an attribute type like a record? This smells very much like an XY Problem. |
Beta Was this translation helpful? Give feedback.
1 reply
-
It sounds to me like what you're after is the simplicity of declaring a user-defined attribute using primary constructor syntax, not necessarily a record. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does it make sense for the compiler to leverage record types to simplify Attribute definitions?
For example:
Equivalent to:
Beta Was this translation helpful? Give feedback.
All reactions