logoalt Hacker News

adastra22 • today at 5:10 AM • 1 reply • view on HN

Even Rust, which is all-in on safety, has escape hatches to turn this shit off.


Replies

aw1621107 • today at 6:27 AM

Not in the same way contracts were/are able to be disabled. There's no command line flag or build mode to disable the borrow checker or assert!()s or bounds checks or etc. There is debug_assert!() which is disabled in release mode, but the original code author decides when and where to use that.