SorteKaninA to Rust@programming.dev · 4 days agoThe Handle traitsmallcultfollowing.comexternal-linkmessage-square8linkfedilinkarrow-up117arrow-down10
arrow-up117arrow-down1external-linkThe Handle traitsmallcultfollowing.comSorteKaninA to Rust@programming.dev · 4 days agomessage-square8linkfedilink
minus-squareTechnoCat@lemmy.mllinkfedilinkarrow-up5·4 days agoWithout ref counting it is hard to know when to free or safely change a value with multiple consumers
minus-squareINeedMana@piefed.ziplinkfedilinkEnglisharrow-up1·4 days agoI mean, keep the ref-counting. Just from the syntax perspective. Aligning with the example in the post: & before Arc would increment reference count, before a Mutex would reference the same object as it does now
Without ref counting it is hard to know when to free or safely change a value with multiple consumers
I mean, keep the ref-counting. Just from the syntax perspective. Aligning with the example in the post: & before Arc would increment reference count, before a Mutex would reference the same object as it does now