Conditional Trait Conformance #2308
Labels
enhancement
New feature or request
mojo
Issues that are related to mojo
mojo-lang
Tag for all issues related to language.
mojo-repo
Tag all issues with this label
Review Mojo's priorities
What is your request?
I believe it would be nice for there to be conditional trait conformance in structs. This could be achieved through a a decorator that is passed static tuples that contain a type, the trait, and the struct value that needs to conform to this.
Example use case:
What is your motivation for this change?
It would allow for more flexibility and be nice when a programmer knows if something will work.
Any other details?
Could be implemented in other ways but the idea/concept is still pretty important
The text was updated successfully, but these errors were encountered: