Re:A Zig Diary
by fractalb on Thursday January 12, 2023 @01:01AM
(#34349770)
First of all thanks for Zig. I like your work.
As I said, I don't know Zig. I read the OP's article and saw these:
std.debug.print("{s}\n", .{arg});
vs
std.debug.print("{s}\n", arg); // This is intuitive coming from other langs.
and
std.debug.print("I just want some output\n", .{}); // Not at all expected .{}
There might be good reasons why they are designed like that, but we outsiders find that syntax idiosyncratic.
There might be good reasons why they are designed like that, but we outsiders find that syntax idiosyncratic.