Re:Push ifs up and fors down
by sowbug on Saturday November 18, 2023 @12:20PM
(#38321887)
I used to ask this same question in interviews: should C code always check for NULL? My favorite answer was that the code should have a notion of boundaries, runtime checks should happen at the boundaries, and debug-only assertions are nice but not required inside the boundaries.
[ Parent
| on HN ]
There are no comments on this comment yet.