cm0002@digipres.cafe to Rust@programming.dev · 2 months agoInheritance in 🦀lemmy.mlimagemessage-square4fedilinkarrow-up136arrow-down115cross-posted to: [email protected]
arrow-up121arrow-down1imageInheritance in 🦀lemmy.mlcm0002@digipres.cafe to Rust@programming.dev · 2 months agomessage-square4fedilinkcross-posted to: [email protected]
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up4·edit-22 months 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.