Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gkfasdfasdf
· 5mo ago · 0 comments
In addition to an assert, a 'nonnull' attribute on compilers that support it seems like a good idea.
Comments
[–]
blueg3
5mo ago
If you use the nonnull attribute, the assertion will be optimized away.
[–]
1718627440
5mo ago
But the compiler tells you about the issue.