cm0002@digipres.cafe to Rust@programming.dev · 2 months agoInheritance in 🦀lemmy.mlimagemessage-square4linkfedilinkarrow-up136arrow-down115cross-posted to: rust@lemmy.ml
arrow-up121arrow-down1imageInheritance in 🦀lemmy.mlcm0002@digipres.cafe to Rust@programming.dev · 2 months agomessage-square4linkfedilinkcross-posted to: rust@lemmy.ml
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up4·2 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.