snaggen@programming.dev to Rust@programming.dev · 1 year agoDon't write Rust like it's Javajgayfer.comexternal-linkmessage-square33fedilinkarrow-up172arrow-down16cross-posted to: programming@zerobytes.monster
arrow-up166arrow-down1external-linkDon't write Rust like it's Javajgayfer.comsnaggen@programming.dev to Rust@programming.dev · 1 year agomessage-square33fedilinkcross-posted to: programming@zerobytes.monster
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up5·1 year 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.