Skip to content

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

Comments

Finally I want to point out that using assert is not ERROR checking (file not found, IP address not resolved, TCP connection failed, system resource failed to allocate, etc.) but BUG checking.
Do not write code for BUGS.

I have nothing to add, but am quoting the above because it is very well put.

AboutSource Built by g1lg1l

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