by oefrha · 2y ago · 0 comments
It’s trivial to write a debug_assert macro in C, so no, you’re not forced to do that.
Rust provides some remarkably rich features to help you reason about the assumptions, preconditions and postconditions your code has, but debug_assert isn't one of them.