Skip to content

Conversation

@LukeMathWalker
Copy link
Owner

No description provided.

Minimize the amount of boilerplate that users have to write
in order to extract information out of the incoming request.
@LukeMathWalker
Copy link
Owner Author

The macro design in this PR is viable, and it's the interface we want to go for.
The implementation, though, isn't: this hardcodes specific constructors for each part of the request we are working with, violating Pavex's attempt to make everything customizable.
To properly support our goal, we will have to introduce a new feature in the dependency injection framework: allow the user to register a fallible constructor and then get a Result<T, E> injected, rather than passing than handling that Result automatically via a match + error handler invocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants