Hi there, new here. A happy zig beginner. And I understood this is a good place to ask zig related programming questions.
I just discovered my undefined variables actually have a value. Is this to be expected?
I though undefined was a primitive value, so would have expected them to be 'undefined' ?
pub fn main() void {
var undef: bool = undefined;
std.debug.print("{}\n", .{undef});
if (undef == false) {std.debug.print("Weird, undefined is false?\n", .{});} else std.debug.print("Undefined is not false but: {}?\n", .{undef});
}