snaggen@programming.dev to Rust@programming.devEnglish · 2 months ago[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comexternal-linkmessage-square18fedilinkarrow-up153arrow-down10
arrow-up153arrow-down1external-link[BLOG] Why Rust mutexes look like they do - Clifflecliffle.comsnaggen@programming.dev to Rust@programming.devEnglish · 2 months agomessage-square18fedilink
minus-squaresugar_in_your_tealinkfedilinkarrow-up6·2 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-squarenous@programming.devlinkfedilinkEnglisharrow-up6·edit-22 months agoRust mutexes would be nice. But I think for me that one thing for me would be its enums.
minus-square5C5C5C@programming.devlinkfedilinkarrow-up5·2 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
.