SorteKanin@feddit.dk to Rust@programming.dev · 9 months agoThe Handle traitsmallcultfollowing.comexternal-linkmessage-square8linkfedilinkarrow-up115arrow-down10
arrow-up115arrow-down1external-linkThe Handle traitsmallcultfollowing.comSorteKanin@feddit.dk to Rust@programming.dev · 9 months agomessage-square8linkfedilink
minus-squareTechnoCat@lemmy.mllinkfedilinkarrow-up5·9 months agoWithout ref counting it is hard to know when to free or safely change a value with multiple consumers
minus-squareINeedMana@piefed.ziplinkfedilinkEnglisharrow-up1·9 months 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