cm0002@digipres.cafe to Rust@programming.dev · 18 hours agoInheritance in 🦀lemmy.mlimagemessage-square2linkfedilinkarrow-up134arrow-down110cross-posted to: [email protected]
arrow-up124arrow-down1imageInheritance in 🦀lemmy.mlcm0002@digipres.cafe to Rust@programming.dev · 18 hours agomessage-square2linkfedilinkcross-posted to: [email protected]
minus-squarecalcopirituslinkfedilinkarrow-up3·18 hours agoDeref works on top of encapsulation though. Inheritance syntactically hides the encapsulation, with Deref it’s in the clear. It’s true that it feels like inheritance, but I’m grateful for it. Otherwise it would be a pain to use the windows API.
Deref works on top of encapsulation though. Inheritance syntactically hides the encapsulation, with Deref it’s in the clear.
It’s true that it feels like inheritance, but I’m grateful for it. Otherwise it would be a pain to use the windows API.