snaggen@programming.dev to Programming@programming.dev • 1 year agoThe Tragic Death of Inheritanceexternal-linkmessage-square6 fedilinkarrow-up11cross-posted to: rust@programming.dev
arrow-up11external-linkThe Tragic Death of Inheritancesnaggen@programming.dev to Programming@programming.dev • 1 year agomessage-square6 Commentsfedilinkcross-posted to: rust@programming.dev
minus-squaremrsgreenpotato@discuss.tchncs.dehexbear1·1 year agoThanks for the explanation! I haven't worked with Rust before, would these traits be an equivalent of C# interfaces? linkfedilink
minus-squaresnaggen@programming.devhexagonhexbear2·1 year agoTraits are similar to an interface, but with some differences. Here is a comparison with Java interfaces https://stackoverflow.com/a/69485860 linkfedilink
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