#rust
threaded - newest
Why not just expand meaning of &?
&
let l_before = &v1;
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
The semantics of something like Handle does add a lot of clarity for me. I had just written an app using tokio and arc and the clones always felt off.
threaded - newest
Why not just expand meaning of
&
?let l_before = &v1;
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
The semantics of something like Handle does add a lot of clarity for me. I had just written an app using tokio and arc and the clones always felt off.