@lemtoman to Rust Programming • 2 years agoAre there other languages that rust where enums can store data?message-square5arrow-up18arrow-down11
arrow-up17arrow-down1message-squareAre there other languages that rust where enums can store data?@lemtoman to Rust Programming • 2 years agomessage-square5
minus-squareEpheralink7•2 years agoYeah, in language theory, this kind of thing is called an “Algebraic Data Type”: https://en.wikipedia.org/wiki/Algebraic_data_type
deleted by creator
Yeah, in language theory, this kind of thing is called an “Algebraic Data Type”: https://en.wikipedia.org/wiki/Algebraic_data_type