News for hackers. Stuff that matters.
Re:Using enums to represent state in Rust by duped on Friday September 22, 2023 @12:20PM (#37613979)
That's not equivalent. Notably if you have a `&[u8]` you can't transmute it to `&[E]`. It's also noisy when you have the enum as part of a larger struct, and can make encoding/decoding very verbose.

There are no comments on this comment yet.