Skip to content
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

Should std.log be used in the library? #59

Open
natecraddock opened this issue Feb 7, 2024 · 1 comment
Open

Should std.log be used in the library? #59

natecraddock opened this issue Feb 7, 2024 · 1 comment

Comments

@natecraddock
Copy link
Owner

See this discussion: #55 (comment)

@VisenDev
Copy link
Contributor

VisenDev commented Feb 7, 2024

My motivation for this is I think at a bare minimum we should be able to tell the user why something fails. If parsing fails, I think it should have a way to tell the user where it failed and why.

Relevant ziglang/zig#17995

This is how std.json does this I believe
https://ziglang.org/documentation/master/std/#A;std:json.Diagnostics

I added logging as a simple way to achieve this functionality, since I hadn't looked into adding more complete diagnostics functionality yet

Perhaps we could look into replicating some of the functionality from std.json?

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

No branches or pull requests

2 participants