@[email protected] to [email protected] • 9 months agoDon't write Rust like it's Javajgayfer.commessage-square28fedilinkarrow-up169arrow-down16
arrow-up163arrow-down1external-linkDon't write Rust like it's Javajgayfer.com@[email protected] to [email protected] • 9 months agomessage-square28fedilink
minus-square@sugar_in_your_tealink5•9 months agoPrecisely. I work in Python a lot, and almost all of our classes use mixins because there’s single inheritance rarely is that answer. And that’s basically just an abuse of inheritance and a trait system would probably be a better fit.
Precisely. I work in Python a lot, and almost all of our classes use mixins because there’s single inheritance rarely is that answer. And that’s basically just an abuse of inheritance and a trait system would probably be a better fit.