cm0002@digipres.cafe to Rust@programming.dev · 5 days agoInheritance in 🦀lemmy.mlimagemessage-square4linkfedilinkarrow-up136arrow-down114
arrow-up122arrow-down1imageInheritance in 🦀lemmy.mlcm0002@digipres.cafe to Rust@programming.dev · 5 days agomessage-square4linkfedilink
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up4·5 days 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.