AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Interop With C Programming
In Rust you can use enums a variant as the number zero which is a great way for self- documenting code and making things easier to read. You can in fact give them actual discriminants explicitly They still have to use repper u8 or repper so-and-so on theenum itself to opt into this but now you can do this. But if I store a true in that C variant, what is what bit pattern is story? If I store a false I don't understand then We don't ask questions. It's like it seems like a very like specific kind of like for C interop concession yeah.