logoalt Hacker News

LoganDarktoday at 5:21 PM1 replyview on HN

UB is bad not because it actually leads to any particular result on any particular platform or compiler, but because semantically it invalidates assumptions about a program. Rust is explicit on this, but it absolutely still applies to C/C++.


Replies

em3rgent0rdrtoday at 6:51 PM

Well because it could lead to any result on some platform or compiler, it invalidates assumptions about the program.

show 1 reply