News for hackers. Stuff that matters.
Re: by 1718627440 on Tuesday September 09, 2025 @04:47AM (#45179307)
> so you can't rely on it as a runtime check.

Exactly. But we already have unreachable and assert. The whole point of contracts is, that they are checked by the compiler (when the compiler invoker asks for it).

Having the contract invoke UB in the fail case means that instead of replacing the error return with a diagnostic provable by the compiler, you replace the error return with potential corruption. In which case is that ever the right choice?

There are no comments on this comment yet.