News for hackers. Stuff that matters.
Re:Rust const generics MVP hits beta by mamcx on Friday February 26, 2021 @02:36PM (#26278892)
I also wish for extensible enums and enum subset:

    pub enum Expr {
        Int,
        Str
    }
    
    pub enum Expr2 : Expr{
        Bool,
    }
    
    fn check(??)-> Expr.Int
Re:Rust const generics MVP hits beta by mamcx on Friday February 26, 2021 @02:38PM (#26278918)
And 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.