Thoughts

mental health break ,./'"**^^$_---
Bad Zig proposals: `dontcare` keyword. Like `undefined` but reading is legal. The compiler is not allowed to optimize out reads or writes
(like with a normal value), but it is allowed to replace the `dontcare` value with any valid bitpattern. For example, ```zig const x: usize = undefined; if (x == 0) { std.debug.print("Hello world", .{}); } if (x != 0) { std.debug.print("Twice", .{}); } ``` In this example, the branching on undefined causes undefined behavior which causes a compile error (in this case because it's comptime known) or (in the general case) ... post canceled I'm confused.
Link 1:19 p.m. Feb 10, 2025 UTC-5