Skip to content

Return queries in ergonomic way #3458

Answered by weiznich
deved99 asked this question in Q&A
Discussion options

You must be logged in to vote

That's currently the only way to specify these return types. I'm not aware of any other solution that retains all necessary type information to beeing able to perform compile time checking without encoding them in the types itself. We are open for concrete suggestions on how to improve this. Please keep in mind that we don't look for simple: "Why not just do xyz" style suggestions, but for something more substantial. For example just suggesting to use impl Trait is not helpful has this cannot ever work.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by deved99
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
Category
Q&A
Labels
None yet
2 participants