2 ms·
> I would keep stumbling on these minor syntax differences all the time, and would eventually give up I can't necessarily fault Zig for the state of this so ea
by tialaramex 3y ago
> I would keep stumbling on these minor syntax differences all the time, and would eventually give up
I can't necessarily fault Zig for the state of this so early in its lifetime, but - that should not be a big problem, handling transition is work for the diagnostics.
Suppose I write this in Rust: printf("%d", count);
Rust says it can't find a function named printf, but it suggests perhaps I want the print! macro instead?
OK, let's try again: print!("%d", count);
No, says Rust, % style format strings aren't a thing in Rust, use {curly brackets}
Sure enough: print!("{count}"); // compiles and works.