by steveklabnik · 3y ago · 0 comments
Why not call Enum Union, and the FFI one CUnion or something? Like, is there something meaningful that Union is for other than C interop? Isn't it functionally identical to a tagged union in every other respect?
No :)
> is there something meaningful that Union is for other than C interop?
Look more closely at the Rust standard library, MaybeUninit<T> is a union.