Skip to content

Comment on Rust's Two Kinds of 'Assert' Make for Better Codeparent

Comments

Some replace asserts with __builtin_unreachable - I guess that would be like filling life jacket with stones?

More like filling them with beer.

If the ship sinks, they're worse than useless. But since you've decided they'll never be needed, you get more beer for your cruise.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.