3 ms·
> Many real world C programs have no UB. A bold claim, I've written a whole lot of software in C, and most of it I'd be astonished if it truly has no UB. Even
by tialaramex 2y ago
> Many real world C programs have no UB.
A bold claim, I've written a whole lot of software in C, and most of it I'd be astonished if it truly has no UB. Even some of the relatively small, carefully written programs probably have edge case UB I never worried about when writing them.
- uecker 2y agoIt is certainly true that many C programs have edge cases which trigger UB. I also have written many such programs where I did not care. This does not contradict my statement though. There are programmers who meticulously care (and/or have to care) about getting the edge cases right and this is entirely possible.