Hacker News new | past | comments | ask | show | jobs | submit login

A C compiler could warn on large classes of side-effecting code inside assert(), as he suggests, but it'd be tricky to decide exactly which kinds of side effects to warn on to avoid too much noise. At the very least, I/O stuff would probably have to be excluded, or else you'd spuriously warn on the common pattern of dumping some debugging info to stderr within a call like assert(everything_ok()).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: