-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap errors in a new struct type and report parsing-failure positions #127
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not against this change, but it would be nice to see it land together with something that actually uses it.
I can certainly update this PR in place with error positions, if you'd prefer not to merge it in isolation. |
Also consider whether we really need error positions. It would be nice to have, sure, but I'd like to see a use case that actually requires it. |
This will make it easier to provide additional information, such as the position at which parsing failed.
In my opinion the use case is better debugging, probably mostly for code sending structured values. |
Fixes #126