▲ 102 ▼ The Tragic Death of Inheritance (avivcarmi.com) submitted 3 years ago by snaggen@programming.dev to c/programming@programming.dev 52 comments fedilink hide all child comments
[–] mrsgreenpotato@discuss.tchncs.de 1 point 3 years ago (1 child) Thanks for the explanation! I haven't worked with Rust before, would these traits be an equivalent of C# interfaces? permalink fedilink source parent hideshow 2 child comments replies: [–] snaggen@programming.dev [S] 2 points 3 years ago Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860 permalink fedilink source parent
[–] snaggen@programming.dev [S] 2 points 3 years ago Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860 permalink fedilink source parent