3 ms·
I also wish for extensible enums and enum subset: pub enum Expr { Int, Str } pub enum Expr2 : Expr{ Bool, }
by mamcx 6y ago
I also wish for extensible enums and enum subset:
pub enum Expr {
Int,
Str
}
pub enum Expr2 : Expr{
Bool,
}
fn check(??)-> Expr.Int
- mamcx 6y agoAnd struct extend!: struct Person { id:i32 } struct Customer: Person { } P.D: This is not subclassing, is not redefine all the same attributes again and again. Is partially supported to copy the values but not defining them.