Hacker News new | ask | show | jobs
by gkfasdfasdf 9 days ago
In addition to an assert, a 'nonnull' attribute on compilers that support it seems like a good idea.
1 comments

If you use the nonnull attribute, the assertion will be optimized away.
But the compiler tells you about the issue.