Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
theobserver
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
theobserver
14y ago
Sorry to hear that. The problem with assert() at production code is that it crashes the program. IMNSHO, it's a medicine worse than the disease (is this why we get a "blue screen" on a popular OS?). Most, if not all tools should be lenie
2.
▲
by
theobserver
14y ago
"There's no table of contents." Really? Did you look at the top?
3.
▲
by
theobserver
14y ago
I think you missed the point: I agree that using assert() is good for declaring invariants - but it is used only at debugging (as the quoted text says). If you don't turn assert() off at production (NDEBUG) you are in a deeper problem. The