News for hackers. Stuff that matters.
Re:Zig: software should be perfect [video] by masklinn on Sunday November 11, 2018 @06:52AM (#18425976)
> compiles and runs just fine.

For fairly low values of those. Creating a null reference is UB, your program is not legal at all.

Re:Zig: software should be perfect [video] by coldtea on Sunday November 11, 2018 @08:26AM (#18426258)
If the compiler still accepts it, then that it belongs to the "UB" class of code is not much comfort.

The whole point is to NOT have it be accepted.

Re:Zig: software should be perfect [video] by jessaustin on Sunday November 11, 2018 @08:10AM (#18426196)
Sure, we're not supposed to do that. Sometimes it happens anyway, and the C++ compiler isn't much help in that case.