snaggen@programming.dev to Programming@programming.devEnglish · 1 year agoThe Tragic Death of Inheritanceavivcarmi.comexternal-linkmessage-square51fedilinkarrow-up1106arrow-down14cross-posted to: rust@programming.devprogramming@kbin.social
arrow-up1102arrow-down1external-linkThe Tragic Death of Inheritanceavivcarmi.comsnaggen@programming.dev to Programming@programming.devEnglish · 1 year agomessage-square51fedilinkcross-posted to: rust@programming.devprogramming@kbin.social
minus-squaremrsgreenpotatolinkfedilinkEnglisharrow-up1·1 year agoThanks for the explanation! I haven’t worked with Rust before, would these traits be an equivalent of C# interfaces?
minus-squaresnaggen@programming.devOPlinkfedilinkarrow-up2·1 year agoTraits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860
Thanks for the explanation! I haven’t worked with Rust before, would these traits be an equivalent of C# interfaces?
Traits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860