News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by endorphine on Thursday March 16, 2023 @01:35PM (#35185272)
Are there other examples of sum types besides enums, in Rust? Are the two terms synonymous?
Re:Switching from C++ to Rust by steveklabnik on Thursday March 16, 2023 @02:28PM (#35186181)
Rust does not have sum types outside of enums. Other languages have sum types, and may or may not call them enums depending on the language.