Skip to content

Why attributes over interfaces? #48539

Answered by MatTheCat
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not behind this decision but using interfaces as metadata is kind of a hack (because it does not define any contract), so when you have a tool like attributes to add metadata it's better to use it!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@kbond
Comment options

kbond Dec 21, 2022
Collaborator

Answer selected by lyrixx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants