snaggen to RustEnglish · 5 months ago[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comexternal-linkmessage-square19fedilinkarrow-up155arrow-down10
arrow-up155arrow-down1external-link[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comsnaggen to RustEnglish · 5 months agomessage-square19fedilink
minus-squaresugar_in_your_tea@sh.itjust.workslinkfedilinkarrow-up6·5 months agoExactly. If there’s only one thing I could bring from Rust into another language, it would be Mutexes. It’s so nice to guarantee safe access to data.
minus-squarenouslinkfedilinkEnglisharrow-up7·edit-25 months agoRust mutexes would be nice. But I think for me that one thing for me would be its enums.
minus-square5C5C5Clinkfedilinkarrow-up6·4 months agoBut only if pattern matching were included, otherwise they would be as unpleasant as C++'s std::variant.
Exactly. If there’s only one thing I could bring from Rust into another language, it would be Mutexes. It’s so nice to guarantee safe access to data.
Rust mutexes would be nice. But I think for me that one thing for me would be its enums.
But only if pattern matching were included, otherwise they would be as unpleasant as C++'s
std::variant
.