Zig Improvements

2022-03-12

TranslateCStep should allow you to customize the output file name rather than inferring it from the output.

2022-03-24

When doing something like this:

std.testing.expectEqual(2022, d.year);

I get the error:

./src/calendar.zig:73:32: error: expected type 'comptime_int', found 'u16'
    testing.expectEqual(2020, d.year);

That's kind of inconvenient... A quick way to get around it is to just use the following instead:

std.testing.expect(2022 == d.year);

But, that kind of makes std.testing.expectEqual() meaningless... I feel like this kind of type-checking could become obnoxious in other situations... Is there a quick way to improve this..?