You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I'd be a bit against logging by default from library code. At least there must be a way to turn it off. (Or preferably it should be off by default).
I think a motivating use-case where logging is undesirable is where someone is building a console application (f.ex. something like pandoc) using Ziglua. If the inputs to the application fail, it should be the application printing an error message and there should be no errors logged from Ziglua in this case.
The diagnostics pattern in Zig is good though. But I don't think that's logging anything using std.log.
See this discussion: #55 (comment)
The text was updated successfully, but these errors were encountered: