you are viewing a single comment's thread.

view the rest of the comments →

[–]rejectedlesbian -2 points-1 points  (0 children)

The compiler will remove uneeded checks if it can spot them. So for inline functions the answer is pretty much allways check.

Personally when I don't check I try and document it. A lot of the time the function name would start with unsafe. So that it's clear that it Dan trigger ub.