Proposal: give functions with inferred error sets a more sane type name #21345
Labels
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Zig Version
0.14.0-dev.1509+fb81522e0
Steps to Reproduce and Observed Behavior
foo.zig
:Observe:
This name, albeit correct, does not give me as a programmer any information about the function. If I want to know the returned errors I would have to do more digging, and if I want to log type names for whatever reason, it causes useless unreadable clutter in the output.
Expected Behavior
I would expect either
fn () !void
orfn () error{}!void
.Changing
foo.zig
to the following:Produces:
Which seems much more reasonable to me. Especially since this lines up with the function signature.
The text was updated successfully, but these errors were encountered: