Rustacean Station  cover image

Zig with Andrew Kelley

Rustacean Station

00:00

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

Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner