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
The problem is that the error messages given by configurations are overly vague. The generic cli/args.zig parser only accepts a small error set of InvalidValue, InvalidFormat, etc. And all error messages are derived from that.
I propose introducing a mechanism by which the comptime type T to cli.args.parse can format its own error messages for an explicit error set E. This would all be statically typed and safe so we don't need anyerrors or implicit error sets or any of that madness.
Extracted from #4444
The problem is that the error messages given by configurations are overly vague. The generic
cli/args.zig
parser only accepts a small error set ofInvalidValue
,InvalidFormat
, etc. And all error messages are derived from that.I propose introducing a mechanism by which the comptime type
T
tocli.args.parse
can format its own error messages for an explicit error setE
. This would all be statically typed and safe so we don't needanyerrors
or implicit error sets or any of that madness.See my comment in #4444 for what I'm thinking.
The text was updated successfully, but these errors were encountered: