AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Are They Just Bits?
i think that part of what's confusing about undefined behavior for people is that it's actually a broad term, and we need to kind of narrow in on different kinds of undefined behavior. So as an example, let's just say that we took rust, and everything's thes but were n to make one change to the language specification,. And the change is that if you ever multiply by exactly one thousand, that's undefined behavior. Ret this would be ridiculous. This would be a really bad idea. That would only be a problem. Why don't we just define multiplication by a thousand to do what you would expect it to do, and then no one's get to run into this problem