Design Note: Unified Request/Response for Parsing & Writing #5
StormLord07
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I started reimplementing the Request/Response in the strict_parsing branch, I had the idea to create a single “all-mighty” Request/Response class. The vision was that a user could recover even from failed parses (for example, due to malformed input), while still having the simplicity of working with only two objects: Request and Response.
As I explored this approach, it became apparent that it introduces significant complexity:
Because of these issues, I decided to cut this approach for now. Once the core deisgn of "strict, straight-to-structure" is implemented I'd like to revisit the idea in a more clean way, but for now the idea of possible error recovery will not be explored further.
Feel free to comment on the idea, if you think it'd be usefull, I'd be happy to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions