A Fun Zig Program

This short example is worth pondering a bit if you are learning Zig:

fn f(comptime x: bool) if (x) u32 else bool {
    return if (x) 0 else false;
}

const print = @import("std").debug.print;
pub fn main() void {
    print("{} {}", .{f(false), f(true)});
}

It is curious in three ways: