Skip to content
Discussion options

You must be logged in to vote

I believe that the exploration around roles or shapes would cover these use cases. This is something that the language team as expressed interest in exploring over the next few cycles and hopefully fleshing out a feature (or multiple features) that would enable these kinds of scenarios, either implicitly or through some "witness type" that would act as the glue. In either case the goal is to expand on generics and generic constraints with something like C++ concepts where a type could be considered to meet the concept as long as the compiler could resolve the required members.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by QuantifEye
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants