logoalt Hacker News

muvlontoday at 11:07 AM3 repliesview on HN

Fair enough!

> And if it's not succeeded for 54 years, "try harder", or "just never make a mistake", is at least not the solution.

And I 100% agree. UB is way overused by these standards for how dangerous it is, and as a consequence using C (and C++) for anything nontrivial amounts to navigating a minefield.


Replies

webstrandtoday at 4:02 PM

I think as compilers got smarter, UB changed somewhat in meaning. Originally the compilers didn't perform such complex analysis, and while invoking UB could break your program, it would still do something reasonable.

show 1 reply
saagarjhatoday at 11:16 AM

What should the behavior above be defined to do?

show 5 replies
stellamariesaystoday at 2:02 PM

[flagged]