I've recently picked up Zig and am really pleased by how fast I could start being productive! One thing that's a bit painful though commenting out some code temporarily because of unused consts and unmutated variables. Take this (unrealistic) example:
fn test(a: f32, b: f32) {
do_something(a);
var c = b;
c += 1;
do_something(c);
}
If I comment out do_something(a), I have to change a to _, only to change it back right after. If I comment out c += 1;, I have to make c a const.
One trick for commenting out c += 1; without having to make c a const is to just do c = c. Any other tricks like this to facilitate quick experimentation by commenting things out?