A lot of Zig relies on compilation being lazy in the same sort of way.
That sounds as bad as relying on undefined behaviour in C.
Which is fine for small inputs and uses, but it's not something that would scale well.
There are similarities here to C++ if constexpr and static_assert, if those are familiar to you.