News for hackers. Stuff that matters.
Re:We don’t use Python native enums by isaac21259 on Friday January 29, 2021 @06:54PM (#25964448)
I think rust encourages encoding data like that.

https://doc.rust-lang.org/rust-by-example/custom_types/enum....

Re:We don’t use Python native enums by rmdashrfstar on Saturday January 30, 2021 @12:16AM (#25966380)
Sum types are the main reason I love writing Rust code. We all miss sum type Enums wherever we go. [0]

[0] https://www.reddit.com/r/rust/comments/l594zl/everywhere_i_g...